Questions tagged [jobintentservice]

98 questions
0
votes
2 answers

Handling the Activity and Service Lifecycle

I am developing an app which will be performing some background function within a JobIntentService. The user initiates action from Screen A. A background Intent Service is started. After the Intent service finishes its work it sends a callback to…
0
votes
1 answer

EnqueueWork doesn't start immediately on Oreo and above

in my SDK I use JobIntentService to do some work in background. I noticed that the job doesn't start immediately when I call enquequeWork(), but it starts some time later. I can't use foreground service to do the work, because the app can't run as…
Keselme
  • 3,779
  • 7
  • 36
  • 68
0
votes
1 answer

BroadcastReceiver Won't work in android 9 after avoid the linter reports UnsafeProtectedBroadcastReceiver

Im using scheduledAlarm to trigger BroadcastReceiver which Start JobIntentService it worked fine but when i inspected the code i got UnsafeProtectedBroadcastReceiver I added if condition check in onReceive method to fillter the action but…
0
votes
0 answers

Apps may not schedule more than 100 distinct jobs with JobIntentService

Here's my JobIntentService public class NotifierService extends JobIntentService { public static void enqueueWork(Context context, Intent work) { enqueueWork(context, NotifierService.class, JOB_ID, work); } protected void…
Kingfisher Phuoc
  • 8,052
  • 9
  • 46
  • 86
0
votes
1 answer

Jobintentservice to fire notification every X hour above android oreo

I want to fire notification for my adhan, So I used Alarmmanager and JobIntentService but I am not getting notification. Here is receiver.
0
votes
1 answer

Android 8.0 - Job Intent Service does not run application on bootup

Initially I had Android 7.0 and didn't have any issues using a BroadcastReceiver and service. However with changes to Android 8.0. I needed to switch to a JobIntentService so my application can run on bootup. I have tried migrating my code to match…
ScuffedCoder
  • 376
  • 1
  • 5
  • 21
0
votes
2 answers

JobIntentService onHandleWork not being called

I have a skeleton class of JobIntentService public class BackgroundRequestService extends JobIntentService { /** * Unique job ID for this service. */ static final int JOB_ID = 1234; public static void enqueueWork(Context context, Intent work) { …
Brandon
  • 1,158
  • 3
  • 12
  • 22
0
votes
1 answer

How to solve RejectedExecutionException of AsyncTask?

I'm calling asyncTask from JobIntentService in following method public static void search(final String searchTerm, ApiCallback> apiCallback) { new SimpleTask<>(new SimpleTask.TaskAction>() { …
Ragini
  • 765
  • 1
  • 11
  • 29
0
votes
1 answer

Getting error on requestLocationUpdates in JobInetentService in Oreo

I have written a GPS based location Service in which I am calling requestLocationUpdates to get updated location and its working properly, but when I targeted the Android Oreo then I have replaced Service with JobIntentService.But when I am running…
0
votes
2 answers

Long network operation on Oreo

In my Android application the user has an option of using the application in offline mode. When the user opts to enter the offline mode, I download all the content from the server(which might take even upto 7 minutes) for offline usage. The usage of…
0
votes
1 answer

Trouble accessing class field values inside a JobIntentService

I'm trying to use the JobIntentService on Android and I'm having trouble accessing the class fields inside the onHandleWork method. My discoverable field always seems to be null inside the onHandleWork method. Here is my JobIntentService…
Redark
  • 173
  • 1
  • 11
0
votes
1 answer

GCM: Yet another BIND_JOB_SERVICE permission error -- IntentService to JobIntentService

Issue: since I now need to target Oreo to submit apps, I have to change my RegistrationIntentService to inherit from JobIntentService instead of IntentService. I am still using GCM, but that should make no difference. Note that this is Xamarin C#…
0
votes
1 answer

SMS_RECEIVED Broadcast Receiver and JobIntentService in Oreo

I have read the Android documentation regarding the new background restrictions in Android API Level 26, and with those in mind, I have designed my app as follows: The app has a BroadcastReceiver listening for the "SMS_RECEIVED" broadcast. This is…
0
votes
2 answers

BOOT_COMPLETED isn't received by my physical phone Asus

I tested a BroadcastReceiver which runs a JobIntentService in emulator, that worked successfully . but it fails when i test the code to my physical phone ASUS ZE551ML . Manifest file :
0
votes
0 answers

Scheduled JobIntentService never starts on API >= 27 Oreo

I've got a widget that schedules a job and I have result: RESULT_SUCCESS from JobScheduler.schedule(job), but my service never starts. I waited more than 30 minutes. Manifest.xml