When I update an alarm I call the alarm manager cancel method before setting
it up...However this doesn't always cancel the old alarm and sometimes I
seem to get more than one alarm scheduled at different rates.

In my activity I let the user change the alarm time interval, this is then
applied to the alarm manager, but if I set one alarm running at 1000 ms,
then cancel it and set again to be 60000ms, the previous alarm still fires,
I am using the application context to create the PendingIntent:

PendingIntent sender = PendingIntent.getBroadcast(context, 12345, intent,
PendingIntent.FLAG_UPDATE_CURRENT);

I believe from examples I have seen that the 2nd and 4th parameters aren't
actually used.

-- 
Regards,
Sy

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to