Identify and cancel an alarm send to an AlarmManager

cody picture cody · Nov 18, 2010 · Viewed 19.5k times · Source

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?

Answer

Julian picture Julian · Nov 18, 2010

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