Identify and cancel an alarm send to an AlarmManager

喜欢而已 提交于 2019-11-28 02:28:20

问题


If I use the AlarmManager to schedule an alarm (a PendintIntent which should be send), how can I identify that alarm later to cancel it? Can I cancel all alarms scheduled by my app?


回答1:


You probably want to have a closer look at the AlarmManager.cancel(PendingIntent operation) function.



来源:https://stackoverflow.com/questions/4212824/identify-and-cancel-an-alarm-send-to-an-alarmmanager

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!