python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
When to use withContext(NonCancellable) versus WorkManager to run code after app is killed/backgrounded?
I have a simple and fast operation such as inserting an important log into an on-disk database. This needs to be guaranteed even if the user closes the app (we don't want to lose the log), and so my i...
Mikey Chen
Votes: 0
Answers: 0
How to get the actual state of JobInfo?
Similar to WorkInfo, https://developer.android.com/reference/androidx/work/WorkInfo.State, how can we determine the actual state of JobInfo?
My use case: I have 2 jobs - Job 1 runs periodically on the...
alpharoz
Votes: 0
Answers: 0
How to get the remaining time after which worker will do work?
I schedule one time work in 100 minutes:
val request = OneTimeWorkRequestBuilder<MyWorker().setInitialDelay(100, TimeUnit.MINUTES).build()
WorkManager.getInstance(context).enqueueUniqueWork(
&q...
Alexey Kolosov
Votes: 0
Answers: 0
Worker class not getting triggered by the OneTimeWorkRequest
I have this OneTimeWorkRequest that don't trigger my SendFeedbackMessageWorker.
The work request should get triggered with the constraint ".setRequiredNetworkType(NetworkType.CONNECTED)", bu...
CompileNow
Votes: 0
Answers: 1