Android AlarmManager: is there a way to cancell ALL the alarms set?

后端 未结 3 2097
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-01 18:58

I am building an app that set 2 alarms for each day of the week (at a certain hour and minute), the alarms repeat week after week forever.

Now the point is: if the u

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-01 19:30

    I think you could get an eye on : AlarmManager.Cancel

    And on that Question/Answer: Android: Get all PendingIntents set with AlarmManager

    As stated in there you can't ask to the AlarmManager to tell you what PendingIntent are in it. But I think you can make some PendingIntent similar to the one you want to cancel ;).

提交回复
热议问题