android-workmanager Questions

0

I have such code, I need to implement the task queue, if the task is in the queue, then you do not need to add it. I implemented as shown in when, everything works, but sometimes the state of the w...
Oxycephaly asked 28/8, 2019 at 19:9

3

Solved

It is common to have Application class as follow public class WeNoteApplication extends MultiDexApplication { public static WeNoteApplication instance() { return me; } @Override public void ...
Clearway asked 25/7, 2019 at 22:47

2

Android version: 8.1.0 Device: Infinix X604B Workmanager: 1.0.0-alpha11 (latest version) Scheduled a PeriodicWorkRequest to run after every 15 minutes. Work request runs after every 15 minutes f...
Chloric asked 13/11, 2018 at 9:9

2

Solved

I implemented an AlarmManager to send notifications when user adds a due date to a Task. However, when the user turns off the device, all the alarms are lost. Now I'm updating the BroadcastReceiver...
Dissimulate asked 15/10, 2018 at 23:26

2

Solved

For OneTimeWorkRequest, we can have setInitialDelay to specific the initial delay. However, there isn't such facility for PeriodicWorkRequest. Is there any reliable way to achieve so? One of the...
Saprophyte asked 8/7, 2018 at 7:38

0

I configured a periodic work manager request and seems like it's working on Pixel(Android version 9.0) but fails on Samsung device which is also running on 9.0 //Work manager request final Periodi...

1

I'm trying to get data from a remote url periodically using PeriodicWorkRequest in WorkManager. I have implemented the logic, the issue here is that i don't get any response from the Worker. Howeve...

3

Solved

for periodic task I am using work manager as: PeriodicWorkRequest.Builder wifiWorkBuilder = new PeriodicWorkRequest.Builder(FileUpload.class, 15, TimeUnit.MINUTES) .setConstraints(new Constrain...
Gunwale asked 7/9, 2018 at 8:19

0

The problem comes when during the video processing user closes the application himself from the task manager then its processing stops. I am working on video file processing in android using FFMpeg...

2

I'm using WorkManager that schedule my notifications, it works when my smartphone is active, but it doesn't work when my smartphone is in standby. Why? There is some constraint that let me that? Or...

1

I want to upload some objects to a server. I'm using work manager and uniqueWork to avoid uploading duplicate objects. There is a constraint on the work so that they only operate when there is inte...
Foreignborn asked 14/6, 2019 at 19:12

0

I am using WorkManager library to schedule a background task, and to prevent the app from sleeping the battery optimization section is opened from the app for the users to manually disable optimiza...

1

Solved

First of all, I'm a total Android noob. Have looked for solutions for some time now, but can't find any helpful hints in the right direction so far. This might be generally caused by the nature of ...

1

Solved

The Android developer docs show an example of how to use a ListenableWorker. However, despite having added councurrent-futures to my project, I see now relevant Callback object as used in the docs:...
Intoxicating asked 12/6, 2019 at 7:57

1

I am on Android O and using Room database, from time to time, I experience SQLiteDisckIOException, I try to troubleshoot problem but the stack doesn't tell me where the failing point is. Can some g...
Propeller asked 8/10, 2018 at 3:45

3

I am building a functionality that will allow merchants to set the schedule of their business. Such functionality would automatically change the variable open to true and false accordingly to the t...

2

Solved

Android architecture has a new components WorkManager. From the example, class CompressWorker(context : Context, params : WorkerParameters) : Worker(context, params) { override fun doWork(): R...

1

I am trying to write Android instrumentation tests for a class that contains WorkManager WorkRequests. For a long time I was stuck at the point where I could see the workers being enqueued but the...

1

I'm using work manager for periodic task. I've to execute single instance of worker my code is below val workManager = WorkManager.getInstance() val callDataRequest = PeriodicWorkRequest.Build...
Elanaeland asked 18/9, 2018 at 10:18

3

I have a Worker instance that needs to run every 24 hours which is pretty simple considering the PeriodicWorkRequest API. But here's the catch. If the user initiates the work at say 8 PM, I need t...
Milden asked 21/8, 2018 at 9:18

2

Solved

I want to execute a task, even after the application is killed using work manager. But, the task is not executed after the app is killed. workManager = WorkManager.getInstance(); Constraints con...
Bloodred asked 26/3, 2019 at 3:35

1

Solved

It seems ListenableWorker no longer has the @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) restriction however I can't figure out or find examples on how to properly return a ListenableFuture< Resu...
Mclin asked 16/5, 2019 at 21:0

1

I'm using Android work manager with a custom initialization. to do that i disable auto-initialization in the manifest like this <provider tools:replace="android:authorities" android:name="an...
Haily asked 8/1, 2019 at 7:38

1

Solved

I have to perform this use case (not code , just the right usage) The use case : I need to fetch some data from the network everyday at 00:30 . These data provide me some specific times , and one o...
Aplanatic asked 10/5, 2019 at 9:14

2

I need to have a callback upon Work completion from WorkManager (android.arch.work:work-runtime-ktx:1.0.0-alpha11). Yet the listener I'm adding is called immediately after work is scheduled. Here...
Blackheart asked 13/11, 2018 at 12:36

© 2022 - 2024 — McMap. All rights reserved.