android-workmanager Questions
0
Have been getting some ActivityThread crashes of which I cannot make much sense. Some of them point to third party libraries which do periodic work like Workmanager, Firebase etc. Root cause of mos...
Muricate asked 9/12, 2021 at 19:23
4
Solved
Work Manager is a new API and I try to execute task every second, but it doesn't work.
This is my worker class
class TestingWorker : Worker(){
override fun doWork(): Result {
Log.i("CheckWorker...
Houser asked 6/7, 2018 at 4:9
2
Solved
I am trying to use WorkManager in Android because till now I have done my insert updates using AsyncTask.
I'm trying to update user in Room database. I have created a class in Repository to do the...
Cruciferous asked 25/1, 2019 at 15:29
5
Solved
I want to schedule a notification everytime the user add a note in the database for a specific time. While there are multiple ways to do it using AlarmManager, BroadcastReceiver etc. How can it be ...
Charlot asked 11/5, 2018 at 20:27
2
Is it possible to set some custom constraints (conditions) on workers?
In my case, I want the worker to be only executed when there are some data available in a table in Room database. I could obs...
Awhirl asked 16/11, 2018 at 10:40
1
I'm currently using a CoroutineWorker from androidx.work:work-runtime-ktx:2.5.0.
What I'm trying to achieve is:
Enqueue workers with beginUniqueWork and same uniqueWorkName, with policy ExistingWo...
Metalinguistics asked 10/5, 2021 at 8:36
2
Solved
Background
In the past, I used a foreground IntentService to handle various events that come one after another. Then it was deprecated when Android 11 came (Android R, API 30) and it was said to pr...
Godgiven asked 29/5, 2021 at 8:24
4
Solved
I'm getting the following new error, when I upgrade WorkManager from "2.2.0" to "2.3.0-rc01"
The error occurs when I'm exporting APK.
C:\app: Error: Remove androidx.work.impl.WorkManagerInitializ...
Mazzola asked 13/1, 2020 at 3:42
6
Solved
Having these dependencies:
dependencies {
implementation "androidx.work:work-runtime:2.0.1"
androidTestImplementation "androidx.work:work-testing:2.0.1"
}
When running this code for the second...
Disremember asked 26/4, 2019 at 21:36
4
WorkManagerInitializer requires to configure setWorkerFactory to inject dependencies to the Worker class. The [document][1] explains about workManager Initialization at AppStartup, but does not pro...
Strickle asked 18/9, 2020 at 7:59
1
We have an Android app using WorkManager to handle background sync work. Our sync worker is like this:
public class SyncWorker extends Worker {
[...]
@NonNull
@Override
public Result doWork(...
Proserpina asked 4/12, 2019 at 11:57
0
My app is not going to open. When i try to open app it immediately close with below crash.
It is happening in only one device Redmi note 10s.(Android 11)
It seems issue with Workmanager, but didn't...
Reptant asked 5/8, 2021 at 4:31
2
Solved
I have a scenario where i have to give user notification using WorkManager at specific time.
How can i schedule Work at specific time, and it should show up even if user force kills the app. or ap...
Edmead asked 5/8, 2018 at 11:18
2
Solved
how to show toast in WorkManager do work()?
When I try, it throws
Caused by: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
Fry asked 1/6, 2019 at 16:14
3
Solved
A new exception appeared on some devices after upgrading Google AdMob Ads library version 19.4.0 to 19.5.0:
Caused by java.lang.ClassNotFoundException
Didn't find class "androidx.work.impl.Wo...
Blacksmith asked 29/10, 2020 at 9:28
2
I am trying to run a simple work every 10 seconds using WorkManager. It works perfectly when app is running on background or foreground. When I close the app (kill the app), the work will not be ca...
Nik asked 31/5, 2019 at 4:52
2
When I try to run an ActivityScenario in my application that contains a WorkManager I get the following error on start:
java.lang.IllegalStateException: WorkManager is not initialized properly. You...
Babs asked 31/8, 2020 at 13:0
0
I need to run a specific work only if the device is not in use. However, I don't fully understand how the .setRequiresDeviceIdle() constraint works.
I'm scheduling a worker like this:
val constrain...
Jaeger asked 11/5, 2021 at 10:24
5
I have been checking with the other links, stackoverflow to reduce time period of Work manager, but I found below link
How to reduce time of PeriodicWorkManager in WorkManager
Above link says th...
Khat asked 15/5, 2020 at 3:34
3
I am trying to get some logging information on WorkManager Workers that i have running in my app. I am using version 2.4.0-alpha01 which uses the new diagnostics added by the Android Framework Team...
Lahnda asked 25/4, 2020 at 16:17
2
Is there a adb shell (dumpsys) command that will give a detailed info of all the tasks scheduled using workmanager - PeriodicWorkRequest
Basically I have a scheduled task which should run daily. H...
Charlean asked 27/4, 2019 at 10:35
2
Solved
I'm sending a daily notification to the user based on a condition from the Worker that is launched using BroadcastReceiver. From Worker I only have context for sending notification.
NotificationCo...
Morton asked 19/11, 2019 at 6:1
1
Solved
I'm trying to use Flow inside a CoroutineWorker (WorkManager) and the flow should be listening for a value in the repository for 5 seconds, if you get the value within that time frame you return Re...
Outage asked 24/2, 2021 at 16:58
5
Solved
I'm new to the new architecture component WorkManager, I do my API calls via Retrofit and RxJava.
My use case here is to get new posts from the Backend, then show notification, and update a widget...
Remnant asked 8/8, 2018 at 22:5
1
Solved
I have asked a question about periodic work here: How can a closed application receive periodic broadcasts?. The answer has been to use WorkManager and this has been a great solution on Android 9.
...
Veliz asked 3/2, 2021 at 15:22
© 2022 - 2024 — McMap. All rights reserved.