简体   繁体   中英

Android. AlarmManager

Can I do periodically tack with AlarmManager for example two days in week(any) and every fixed hours in day? How something:

every Sunday: every two hours
every Friday: every four hours
eth..

You can set one alarm and when it fires set the new alarm. I think that's the only way to make non-constant intervals between alarms. setRepeating() and setInexactRepeating() methods of AlarmManager are designed only for constant intervals.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM