android-workmanager Questions
3
Solved
There is no any official doc (as I have read the docs at least) that explain the usage and the mechanism behind these two modes . How do they work ? And what problem do they solve ?
I will appreci...
Mindszenty asked 25/9, 2018 at 10:47
4
I have implemented Foreground Service using WorkManager, it works fine upto API Level 33. Since it is mandatory in API Level 34 to specify foregroundServiceType, I specified it in Worker and in the...
Hurtle asked 22/8, 2023 at 2:33
6
Solved
I cannot build my project due to it failing because it cannot find a class. Is there something wrong with my sdk or dependancies?
I have tried invalidating cache and restarting. I am using api 29.
...
Dripdry asked 10/10, 2020 at 5:2
4
Execution failing when trying to build, Below is the error
Execution failed for task ':app:checkReleaseDuplicateClasses'.
A failure occurred while executing com.android.build.gradle.internal.tasks...
Misplace asked 31/7, 2023 at 15:42
3
Solved
I've extended JobService as such:
public class MyJobService extends JobService {
@Override
public boolean onStartJob(JobParameters params) {
return false;
}
@Override
public boolean onStopJ...
Polk asked 26/12, 2020 at 16:54
2
This question has been asked many times in different forms but I am not getting it right and are wondering if it might not be an android bug.
After setting up WorkManager doWork() is called at rand...
Passible asked 18/3, 2022 at 12:42
9
Solved
WorkManager is a library used to enqueue work that is guaranteed to execute after its constraints are met.
Hence, After going though the Constraints class I haven't found any function to add ti...
Woodman asked 16/5, 2018 at 6:9
1
For fetching the location from foreeground service, we have recently migrated our WorkManager to use ForegroundService. We have followed the below document to achieve this:
https://developer.androi...
Popularize asked 22/3, 2021 at 9:41
3
following this question, I looked into Android Job Scheduling and it seems like Work Manager is the latest tool if I want to do something once every month. I built a Worker class and activated it w...
Yt asked 23/12, 2018 at 4:23
15
Solved
I've followed the Android Developer's tutorial on using the Worker Manager structure to run my code in background but anytime I try to enqueue my worker it doesn't run and I get the following error...
Subsume asked 5/10, 2018 at 1:40
6
Solved
I am creating an android application to run my code in background. I'm well aware of the restriction introduced by the Android Oreo for background services and that's why I'm using WorkManager API ...
Tonsillectomy asked 23/6, 2018 at 9:11
2
I got a big problem...
The App Inspection of Android Studio don't start even after clearing caches, restart/delete AVD.
Steps done:
Clear Caches
Update All
Delete/Recreate AVD
Read All The Logs
W...
Patois asked 18/7, 2023 at 10:23
2
When I added work manager library to android studio and run the app it crashes with this error:
E/SQLiteLog: (14) cannot open file at line 37816 of [c255889bd9]
(14) os_unix.c:37816: (13) lstat(/d...
Mclin asked 16/8, 2020 at 6:56
3
I was creating an android notification app which gives notification every 15 minutes after the alarm has been set.
it calls first time, and shows notification but workmanager not calling every 15 m...
Longford asked 17/11, 2022 at 3:9
2
Solved
I'm trying to implement Android ListenableWorker that startWork() method returns com.google.common.util.concurrent.ListenableFuture interface, but the last one isn't available. Also I need com.goog...
Grath asked 1/8, 2019 at 10:41
5
Solved
I have an Android app on Play store for 8 years. Recently Google release Android S or 12 introduce some limit with Foreground service launch restrictions
https://developer.android.com/about/version...
Hardener asked 8/2, 2022 at 9:1
0
I want to call a method in from CommonMain periodically even when the app is in background. I wanted to start to implement it for Android, so I tried with Workmanager. But I realised that I cannot ...
Transmarine asked 7/7, 2023 at 11:50
2
Solved
In my instrumentation tests I have noticed that my Retrofit components are created before the test even does the hiltRule.inject() command.
This is probably because I'm using WorkManager and early ...
Literati asked 1/3, 2023 at 14:50
2
Solved
Doing a little Jeopardy style Q&A here.
I have some work I sometimes need to run as expedited as described in the version 2.7.0 of WorkManager:
val constraints = Constraints.Builder()
.setRequ...
Aden asked 19/10, 2021 at 8:19
9
Solved
i am trying android WorkManager, The code is throwing error "More than one file was found with OS independent path 'META-INF/proguard/androidx-annotations.pro" when running, I tried the following a...
Christoforo asked 26/9, 2018 at 13:1
2
How to unit test WorkManager Worker?
Here is sample Worker:
public class SampleWorker extends Worker {
private static final String TAG = "SampleWorker";
private static final String WORKER_TAG ...
Aglitter asked 19/10, 2018 at 17:40
3
With:
implementation "androidx.work:work-runtime:2.3.4"
I'm trying to implement custom initialization to enable more verbose logging according to these instructions.
The first snippet has...
Bans asked 22/6, 2020 at 8:11
5
Solved
I am using ListenableWorker to perform background tasks.
Also I want OS to be aware of my service importance, so I call
setForegroundAsync(new ForegroundInfo(WorkerConstants.NOTIFICATION_FOREGRO...
Monarski asked 5/3, 2020 at 8:45
5
Well as WorkManager is newly introduce in Google I/O, I'm trying to use workmanager to perform task periodically,
What I'm doing is, Scheduling the work using PeriodicWorkRequest as following :
C...
Elsyelton asked 3/7, 2018 at 11:4
3
Solved
I have a service listening for incoming FCM notifications. When such a notification is received, I run a job with WorkManager.
When multiple notifications are received at the same time, how can I ...
Comehither asked 14/10, 2018 at 13:38
1 Next >
© 2022 - 2024 — McMap. All rights reserved.