Search code examples
androidschedulealarmalarmmanagerandroid-alarms

Identify and cancel an alarm send to an AlarmManager


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?


Solution

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