If you want to cancel an alarm, and you don't have a reference to the original PendingIntent used to set the alarm, you need to recreate a PendingIntent exactly as it was when it was originally created.
An Intent is considered equal by the AlarmManager:
if their action, data, type, class, and ca...