Android-job: How to make some exact Alarm and then repeat for a given interval.

Created on 22 Nov 2016  路  2Comments  路  Source: evernote/android-job

How to simulate something like this -

Wake up the device to fire the alarm at precisely 8:30 a.m., and every 20 minutes thereafter:

as mentioned in this section in the android training docs

Setting an setExact() with setPeriodic() gives this error -

Caused by: java.lang.IllegalArgumentException: Can't call setExact() on a periodic job.
    at com.evernote.android.job.JobRequest$Builder.build(JobRequest.java:882)
help wanted

Most helpful comment

You need to schedule the exact job first (not periodic) and then schedule the periodic job from the first job. There is no other way in the moment.

All 2 comments

You need to schedule the exact job first (not periodic) and then schedule the periodic job from the first job. There is no other way in the moment.

@vRallev Can you please provide an example?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

deviant-studio picture deviant-studio  路  5Comments

pyricau picture pyricau  路  7Comments

tatocaster picture tatocaster  路  6Comments

ha-D picture ha-D  路  7Comments

ExploiTR picture ExploiTR  路  6Comments