Skip to content Skip to sidebar Skip to footer

Android Jobscheduler: Using Setminimumlatency With Setperiodic

I'm just playing around with JobScheduler, and have a couple of niggles. One of them is that, although you can delay a job by using setMinimumLatency(), you cannot use that in comb

Solution 1:

In your implementation of JobService class, call jobFinished(params, reschedule); to reschedule before leaving onStartJob method.

Also don't forget to return true in onStopJob method to reschedule as well.

https://developer.android.com/reference/android/app/job/JobService.html#jobFinished(android.app.job.JobParameters, boolean)

Post a Comment for "Android Jobscheduler: Using Setminimumlatency With Setperiodic"