Hi! When You pass a PendingIntent to the AlarmManager, if there is already one with the same Intent already registered the former will be canceled and the last will be the active one. Two pending intent is the same (in the case of an explicit intent) if the context and the target class is the same. Extras do not count. So You can't register the same pending intent more than once.
I've browsed through the code of the stock AlarmClock which can use multiple alarms to see how it handles more than one alarm. It always registers the next alarm which should be fired with AlarmManager, and every time there is a change in the alarms or if one is fired it recalculates which alarm comes next and registers it. So it always uses only one PendingIntent which targets a BroadcastReceiver which in turn fires the appropriate alarm. I hope this helps. Zod. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---