Cancelling an Alarmmanager/Broadcast

Asked

Viewed 106 times

0

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

All the information code is on this link (another call that has been solved): 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 occurred (make it not wake/run the Broadcast/AlarmManager) Thank you!

1 answer

1

I did it! just need to create a intent with the same information of what was passed to creation. with all the putExtras() that was placed and tals! thank you!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.