Canceling an AlarmManager / BroadCast

0

Next, I do not know which one to cancel not to run, but I think it's AlarmManager ! I have a class that registers a AlarmManager with Intent("BROADCAST") to execute at a specific time, when that AlarmManager is executed it calls a class that extends from WakefullBroadcastReceived , and when that receve is executed it calls a class type Service that generates a notification!

All information code is on this link (another call that was resolved): BroadCast notification when Android device is asleep

My question now is: how to cancel the execution of this event if the user deletes the event before it has occurred (cause it to not wake up / run Broadcast / AlarmManager ) Thanks!

    
asked by anonymous 05.06.2014 / 19:38

1 answer

1

I did it! you just need to create a intent with the same information as was created for creation. with all putExtras() that was placed and tals! Thank you!

    
06.06.2014 / 20:27