Category : android-jobscheduler

So I have a work/job that has to be rescheduled in case of failure exponentially with a ceiling of say 24 hours . But the problem with work manager/ job scheduler is that it allows the user to retry the task only for a maximum of 5 hours by default. Is there a way to ..

Read more

I’m working on an Android app with a constant repeating background process. From the moment the device starts it should load data off a webpage every minute. It uses XmlPullParser and a simple URL inputstream. It is but 10kb so it isn’t that intensive. I believe this kind of task is called Deferred. The information ..

Read more

I have a particular crash happening on Samsung devices for the most part with Android version 10. I have a JobScheduler which schedules jobs and has them in a queue for later execution. ComponentName jobService = new ComponentName(getApplicationContext(), HeartBeatJobService.class); JobInfo.Builder builder = new JobInfo.Builder(HeartBeatJobService.JobID, jobService); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { builder.setPeriodic(JobInfo.getMinPeriodMillis(), JobInfo.getMinFlexMillis()); } else { ..

Read more