android-workmanager Questions
1
Solved
I need a component in my Android app that is best being described as a watchdog, i.e. a function that is executed every 30min +/- 5min and asserts that a certain condition is still met. The watchdo...
Bilabiate asked 29/10, 2018 at 10:10
1
Solved
I have saved the WorkManager UUID converted to String in Realm database.
Here is the code -
Constraints constraints = new Constraints.Builder().setRequiredNetworkType(NetworkType.CONNECTED).bui...
Orbiculate asked 23/11, 2018 at 5:34
3
Solved
How to properly use the new WorkManager from Android Jetpack to schedule a one per day periodic work that should do some action on a daily basis and exactly one time?
The idea was to check if the ...
Psychosurgery asked 15/5, 2018 at 18:32
1
Solved
WorkManager is a library used to enqueue work that is guaranteed to execute after its constraints are met. WorkManager allows observation of work status and the ability to create complex chains of ...
Eastbound asked 6/11, 2018 at 12:37
2
Solved
I want to run a task in my app everyday, I am using JobScheduler for it and works fine in stock OS, but when I try to run it in phones which has custom ROM (Xiaomi) it doesn't work unless I explici...
Reenareenforce asked 22/10, 2018 at 10:44
1
Solved
I am trying to make use of WorkManager however I seem to be running into an issue where PeriodicSync is only repeated on startup once and that's it.
I've looked at this post Is WorkManager's P...
Statute asked 21/10, 2018 at 13:3
1
Solved
I have tried making a repeated task every 15 minutes but Worker#doWork NEVER gets called, not even the very first time (on Nexus 6P - Android 8). However, when testing on an Android 8 emulator, I o...
Olly asked 31/8, 2018 at 15:21
1
Solved
I use this code to set my own worker factory:
val daggerWorkerFactory = DaggerWorkerFactory(toInjectInWorker)
val configuration = Configuration.Builder()
.setWorkerFactory(daggerWorkerFactory)
...
Sibelius asked 8/10, 2018 at 10:44
3
Solved
I want to schedule nightly database updates. So I use new Android WorkManager. My understanding is that once scheduled it will always run in the background independently from the app's lifecycle.
...
Decimal asked 4/6, 2018 at 13:43
1
Solved
Worker's Worker() is @Deprecated , so need use
public Worker(@NonNull Context context, @NonNull WorkerParameters workerParams) {
super(context, workerParams);
}
but the WorkerParameters's con...
Lakes asked 20/9, 2018 at 9:55
1
Since the Worker class is created by the framework (WorkerManager), how can we use @Inject fields into the Worker?
Penneypenni asked 22/5, 2018 at 7:36
1
Background
I'm trying to load some URL in the background, but in the same way WebView loads it in an Activity.
There are multiple reasons developers would want it (and requested about it here) , ...
Aphis asked 4/9, 2018 at 8:46
1
I'm trying to make a worker-run every 15 minutes using the new WorkManager API, 1.0.0-alpha06.
If I'm not wrong, using Work manager with PeriodicWorkRequest should make the worker outlive task kill...
Economy asked 13/8, 2018 at 0:40
2
Solved
From what I read from the documentation https://developer.android.com/topic/libraries/architecture/workmanager,
It said that:
The task is still guaranteed to run, even if your app is force-quit...
Almatadema asked 30/7, 2018 at 3:44
2
Solved
By referring to: Android WorkManager api for running daily task in Background
It uses the WorkManager.enqueueUniquePeriodicWork to ensure that PeriodicWorkRequest is not created multiple times.
e...
Tumbledown asked 1/8, 2018 at 7:45
2
Solved
I've had a look at the codelab for WorkManager plus some examples on here, but everything in code I have seen is either related to doing work locally on the device or work uploading to the server, ...
Claudy asked 8/6, 2018 at 13:9
2
Solved
[UPDATE]
this has been solved in alpha09
I´ve two works that gets chained by the WorkManager alpha04 beginWith and then api´s.
fun updateData() {
createWorkRequests()
runDataDownloadWork()
}
p...
Randell asked 28/6, 2018 at 8:24
2
I create some OneTimeWorkRequest When I use the android-arch work WorkManager.
I can watch WorkStatus by observer like this
final WorkManager workManager = WorkManager.getInstance();
final LiveDat...
Mirellamirelle asked 13/6, 2018 at 11:53
1
I'm creating OneTimeWorkRequest with NetworkType.CONNECTED constraint, but even though the device is connected to the internet, the request is still in ENQUEUED state
Constraints constraints = new...
Slashing asked 3/7, 2018 at 6:48
6
I need to call one API daily in the background even if the app is closed. I have seen about WorkManager API. For my scenario, I tried PeriodicWorkRequest but unfortunately, it's not working as my e...
Bandage asked 18/5, 2018 at 16:35
0
I´ve tried saving data from a Worker to Room database.
Versions:
Work Runtime Ktx - android.arch.work:work-runtime-ktx:1.0.0-alpha02
Room - android.arch.persistence.room:runtime:1.1.0 and
androi...
Sequential asked 20/6, 2018 at 14:27
1
Solved
On Application start I want to start service that will work forever, but when user opens app again it duplicates.
PeriodicWorkRequest.Builder sendDataBuilder = new PeriodicWorkRequest.Builder(Send...
Teaching asked 20/6, 2018 at 7:53
2
Android has recently introduced WorkManager for scheduling tasks. One of the powerful feature of this WorkManager is chaining multiple tasks through combine, then and beginWith operators. Data clas...
Offal asked 16/5, 2018 at 9:12
1
Solved
I'm using WorkManager to sync data from my local Room database to server. The issue is that Room gives error to build database in Loop.MainLooper() and when i use it as following it works fine. But...
Jard asked 29/5, 2018 at 8:50
1
Solved
We notice that AlarmManagerCompat alone, isn't a reliable way to implement alarm/ reminder feature in our app, due to different AlarmManager behaviour in different version of OS. (For instance, Doz...
Johen asked 26/5, 2018 at 20:27
© 2022 - 2024 — McMap. All rights reserved.