JobScheduler not repeating job

ⅰ亾dé卋堺 提交于 2019-11-30 22:19:33

The minimum period a job can be scheduled is 15 minutes. If it is set to a value less than 15 minutes, the job will use 15 minutes.

See: MIN_PERIOD_MILLIS in JobInfo.

Also, see this comment in the code too:

Query the minimum interval allowed for periodic scheduled jobs. Attempting to declare a smaller period that this when scheduling a job will result in a job that is still periodic, but will run with this effective period. A recurring task with your interval will need some other service, possibly the Alarm Manager will work for you.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!