I am setting an alarm for my reminder app:
PendingIntent sender = PendingIntent.getBroadcast(AddToDoList.this,
Integer.parseInt(DBHelperClass.getMaxPrimaryId()), intent, 0);
i am using a unique value (primary ID) to set an alarm. When i want to edit the alarm i am using the same key. But what i see is that both the alarms go off! original as well as edited one.
how do i cancel the old alarm ? Also these alarms are not working once i switchOff & then again switchOn my device .