Sorry to bump this, but I'm wondering if anyone saw the email. On Fri, Dec 11, 2009 at 2:05 PM, Adam Olsen <arol...@gmail.com> wrote: > Take, for example, the built in Alarm application. You are able to > set multiple alarms in it, and the phone will wake up for each of them > to alert you. > > In a situation like that, I imagine the PendingIntent for each alarm > would look very similar: > > Intent intent = new Intent(this, AlarmReceiver.class); > PendingIntent pendingIntent = PendingIntent.getBroadcast(context, > REQUEST_CODE, intent, 0); > > AlarmManager alarmManager = (AlarmManager) getSystemService > (ALARM_SERVICE); > alarmManager.set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis() + > (5 * 1000), sender); > > If you wanted to set up multiple alarms, though, the PendingIntent > created here would need to be different, because AlarmManager.set() > will just replace the previous alarm if the PendingIntents are equal. > > How can you create a PendingIntent in this manner that will not be > equal to the one you previously used? > > Adam > > -- > You received this message because you are subscribed to the Google > Groups "Android Beginners" group. > To post to this group, send email to android-beginners@googlegroups.com > To unsubscribe from this group, send email to > android-beginners+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-beginners?hl=en
-- Adam Olsen SendOutCards.com http://www.vimtips.org http://last.fm/user/synic -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en