Questions tagged [jobintentservice]
98 questions
1
vote
0 answers
xiaomi android 7: JobIntentService.onHandleWork() runs in a loop
I am working with JobIntentService class that does some background work:
public class JsInvokerJobService extends JobIntentService {
/**
* Unique job ID for this service.
*/
static final int JOB_ID = 1000;
private static final…

kurtgn
- 8,140
- 13
- 55
- 91
1
vote
1 answer
JobIntentService - onHandleWork is not always called?
I have home screen widget, which has a simple AppWidgetProvider and JobIntentService, where I do all the work.
Problem is - it works kind of randomly. Sometimes it does, sometimes it doesnt - weirdest thing is, I can see in the log, that on each…

qkx
- 2,383
- 5
- 28
- 50
1
vote
1 answer
sendBroadcast from inside Service which uses Coroutine for network call
I have a JobIntentService which is supposed to do an API call and do a broadcast once the result is available.
I am using a Coroutine to do the network call using Retrofit.
However, if I do sendBroadcast within the CoroutineScope , it does not…

Pratik Banodkar
- 105
- 1
- 10
1
vote
0 answers
JobIntentService not working in android Q
onHandleWork is not triggering. The Service is working fine below android 10.
class IncidentImageUploadService : JobIntentService() {
private var eventModel: String? = null
private var incidentId: Int? = null
private var sS3Client:…

Black4Guy
- 641
- 11
- 28
1
vote
0 answers
I'm trying to upload multiple files using JobIntentService in android
I'm trying to upload multiple files using JobIntentService in android. The files seem to get uploaded, but I'm unable to track progress in the progress bar. The progress bar stays at the same position during the whole upload process and it just…

Swapnil jaiswal
- 58
- 1
- 6
1
vote
1 answer
Can onDestroy() be called without onHandleWork() in JobIntentService?
I am using JobIntentService.enqueueWork()
I would like to know if it's ever possible for the onDestroy() to be called even without onHandleWork() called in a JobIntentService.
Basically, what's the lifecycle of a JobIntentService. Is onHandleWork()…

Henry
- 17,490
- 7
- 63
- 98
1
vote
1 answer
How to integrate any AndroidX SDK in Non AndroidX app
I have migrated my Android Library Project (SDK) to AndroidX and it is using implementation 'androidx.core:core:1.1.0' dependency. After integrating this SDK in a Non AndroidX app, my SDK is crashing with following exception:
Caused by:…

zeeali
- 1,524
- 20
- 31
1
vote
1 answer
Background service issue in oreo and pie
Basically i want to send latitude and longitude in background it is working fine below Oreo versions but I am stuck in that part. It is working all good. I have added a background JobIntentService it is working fine in Oreo and pie background but…

Abdullah Nagori
- 441
- 1
- 5
- 10
1
vote
0 answers
JobIntentService not working in doze mode for alarm app
I am making an alarm app for waking up user at an exact time.
I am using JobIntentService (since Android O+ devices don't support background services) for showing a notification alarm like this:-
(AlarmManager -> BroadcastReceiver ->…

syed_noorullah
- 155
- 2
- 13
1
vote
1 answer
FusedLocationProviderClient and Wakelocks
I am implementing a solution to track location updates in my Application,both in foreground and background, and perform some task when location is updated.
As per the Google recommendations in…

Shanker
- 864
- 6
- 24
1
vote
1 answer
Toast from JobIntentService
I am a beginner.
I want Toast from jobintentservice (onHandleWork) but crash my app.
logcat error is : " can't toast on a thread that has not called looper.prepare()"
i want learn work with handler in jobintentservice
please help me.
public class…

Ghasem Tayyebi
- 11
- 1
1
vote
1 answer
What happens after JobIntentService's onDestroy is called?
I have a question related to lifecycle of a JobIntentService. From the documentation, I found out that the JobIntentService is destroyed right after onHandleWork(Intent intent) has returned. onHandleWork runs on background, so I can run blocking…

confuoco
- 11
- 1
- 7
1
vote
1 answer
onHandleWork() not called in a JobIntentService
I need to handle intents posted via AlarmManager both while my app runs and at boot time. I've written a subclass of JobIntentService to handle the intents but it's not working as expected: onHandleWork is not called.
My implementation worked when…

Timmy K
- 291
- 1
- 2
- 14
1
vote
0 answers
Cannot execute LocalBroadcastManager from JobIntentService
I've a JobIntentService, in which if certain conditions are met, it must launch a LocalBroadCastManager that is received by my MainActivity.
I'm doing it this way:
LocalBroadcastManager localBroadcastManager = LocalBroadcastManager
…

user2638180
- 1,013
- 16
- 37
1
vote
0 answers
JobIntentService not Starting properly in Some Devices?
Previously am using IntentService to trigger the Background services with AlaramManager. Now am changed the IntentService to JobIntentService for trigger Background process to fetch the data from Server. In Some devices JobIntentService not…

Yugesh
- 4,030
- 9
- 57
- 97