android-workmanager Questions

7

Solved

How can I check if WorkManager is scheduled already. Here is my code that schedule WorkManager. public static void scheduleWork() { PeriodicWorkRequest.Builder photoCheckBuilder = new PeriodicW...
Rebarbative asked 31/7, 2018 at 11:25

3

I study Android WorkManager, and fond one problem. I have 2 Works, first of them fetch some data from server and second preload resources (depends on result of first work). I need doing this chai...
Mareah asked 31/10, 2018 at 21:19

4

I have been digging into ListenableWorker class to create a service using new workmanager. But nowhere have i found any examples. Any source which describes work manager, gives example of Worker cl...
Oleate asked 6/5, 2019 at 15:47

8

In PeriodicTimeRequest minimum periodic time is 15 minute. I want to reduce it from 15 min to less than 15 minute.How can i do that?
Dorsman asked 13/3, 2019 at 6:52

3

Solved

I'm trying to inject WorkManager with Hilt. first I implement the documentation: Inject a Worker using the @HiltWorker annotation in the class and @AssistedInject in the Worker object's constructo...
Mortise asked 5/8, 2021 at 19:45

9

Solved

Google recently announced new WorkManager architecture component. It makes it easy to schedule synchronous work by implementing doWork() in Worker class, but what if I want to do some asynchronous ...

2

Solved

I have a workmanager that every five hours picks up a word from the roomdb and Notification it I do not know where is the righ place to put the work manager in the MVVM architecture. Should I use i...

3

How can we pass Serializable object in work manager by setData method of work manager? Is there any way to process with Work manager by passing object? WorkManager is a library used to enqueue wo...
Via asked 25/6, 2018 at 7:32

7

I have requirement of pushing in app notification to user based on following logic. Type A notification will be shown after every 24 hours. Type B notification will be shown after every 7 days. T...
Massive asked 20/7, 2018 at 9:30

3

Solved

I'm developing an SDK that needs to startForeground service from the background. Because it uses background location and Bluetooth-related works. If the application is killed, the monitoring is per...

3

Solved

I upgraded to WorkManager 2.1.0 and tried to use some of the Kotlin extensions including CoroutineWorker. My worker was extending androidx.work.Worker previously and it was executing cleanup code b...
Kinchen asked 12/7, 2019 at 17:14

3

Solved

Same questions have been asked but they didn't work for me , In the start I was using the latest version of work manager which is 2.7 alpha 3 but I downgraded since its only compatible to android 1...
Spancake asked 4/5, 2021 at 15:51

1

my current android application employs androidx.work.CoroutineWorker(s) to execute long running download tasks. api 'androidx.work:work-runtime:2.7.1' api 'androidx.work:work-runtime-ktx:2.7.1' th...
Hypocycloid asked 2/3, 2022 at 8:31

2

I want to collect user browsing data for offline backend analysis for a Flutter app. What is the optimal way to do that? What I am planning to do is run a daily cron on the app that uploads it usin...
Transgression asked 11/9, 2021 at 12:44

0

I have upgrade the Android SDK project 30 to 31 and I also used permission in manifest: . which is required for targeting SDK 28 and above. In Android 12 I am getting the frequently below crashes o...
Tripody asked 18/3, 2022 at 6:53

2

in my application I am using work manager for periodic work. I am uploading files to server. I have one button on click of that button one dialog shown up and ask user - Which network you want to u...
Paradisiacal asked 12/9, 2018 at 13:3

6

Solved

Why should I bother with rx or coroutines when there is brilliant solution as WorkManager? But for almost all tutorials, they use coroutines, so may be WorkManager has disadvantages?

5

Can someone help me find where I am going wrong here. I need to continously observer network data and update the UI whenever there is a data change from the Worker. Please note that this was workin...

2

Solved

For some reasons I cannot get output data from PeriodicWorkRequest of Android WorkManager. The worker runs periodically as expected, it just doesn't return any data. My MainActivity: @Override pr...
Ximenez asked 8/9, 2019 at 20:17

1

Getting the following crash on coroutine worker, the crash is happening on only some Samsung, Vivo and Oppo devices specifically and only on Android 10 Fatal Exception: android.app.RemoteServiceExc...
Legend asked 8/1, 2021 at 7:6

3

I'm developing an Android app. and I'm trying to use hilt with workmanager constructor but it does not work and gives me this error : 2020-08-18 19:01:09.989 18125-18759/com. E/WM-WorkerFactory: Co...
Extremist asked 18/8, 2020 at 16:13

1

I have initiated a worker in my App class like below; @HiltAndroidApp class KutuphanemApplication:Application(),Configuration.Provider { @Inject lateinit var workerFactory: HiltWorkerFactory over...

1

I am trying to create a widget and as stated in this guide, …If your widget setup process can take several seconds (perhaps while performing web requests) and you require that your process continu...

1

Hey I am working WorkManager in kotlin. I didn't understand some code and getting me this error. Could you someone explain me in more details. 2022-01-06 16:48:33.501 14483-14483/com.example.app E/...
Elbrus asked 6/1, 2022 at 17:16

2

Solved

My app is targeting API 31/Android 12 and version 2.7.0 of WorkManager is required for that according to Google, so in order to do that, I have added setExpedited(OutOfQuotaPolicy.RUN_AS_NON_EXPEDI...
Nonesuch asked 23/10, 2021 at 2:30

© 2022 - 2024 — McMap. All rights reserved.