-1

I am new on using job libraries as Job Scheduler. I have seen a lot of documentation and none of them responds to my question, is it possible to schedule a job for 9PM (for example) and that same job runs everyday at 9PM(the hour of the initial job). What I have seen are people setting a periodic time but I dont know if the periodic starts when the job runs for the first time our if I could specify an hour.

José Nobre
  • 2,001
  • 4
  • 13
  • 30

1 Answers1

1

Do you mean that you want to set exact, periodic job? If yes, it is not possible. Every periodic job is inexact. This mean that job will be executed at any time in a window of flex length at the end of the period. And the requirement is that the flex time is at least 5% of the period.

Take a look at: https://developer.android.com/reference/android/app/job/JobInfo.Builder.html#setPeriodic(long,%20long)