John
John

Reputation: 8946

cancelling the alarms which were set previously

I have created an alarm application in android.The problem is, when the phone reboots the alarm which was set already for previous date is showing. How to cancel the alarms which were set before the current date.

Upvotes: 1

Views: 289

Answers (1)

pankajagarwal
pankajagarwal

Reputation: 13582

what are you using to set the alarm ? If you are using AlarManager to do so then try AlarmManager.cancel();

Upvotes: 1

Related Questions