Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以定期AlarmManager执行例如一周中的两天(任何)和一天中的每个固定时间吗?怎么样:
AlarmManager
every Sunday: every two hours every Friday: every four hours eth..
您可以设置一个警报,并在它触发时设置新警报。我认为这是在警报之间进行非恒定间隔的唯一方法。setRepeating()AlarmManager和setInexactRepeating()方法仅针对恒定间隔设计。
setRepeating()
setInexactRepeating()