android-job

android-job: Periodic once a day, DeviceIdle = true, as soon as possible

社会主义新天地 提交于 2019-12-12 01:52:44
问题 need some help to set up my perodic job correctly with android-job lib. I want to start a job once a day and the device is ideling. Additionally the job should start as soon as possible on day. That means in best way the job start at 00:01 AM. And it's not that solution descriped here! Is this possible? Can anyone give me a hint for the rigth solution? Here is my code snippset for a Job once a day if device is idle mJobId = new JobRequest.Builder(JOBTAG) .setPeriodic(TimeUnit.HOURS.toMillis