I use following snippet to set multiple notifications. final int _id = (int) System.currentTimeMillis();
PendingIntent contentIntent = PendingIntent.getBroadcast(context, _id, intent, PendingIntent.FLAG_ONE_SHOT); But it replaces previous notification in the notification bar. How to add different notification for each notification in notification bar.? On Thu, Apr 21, 2011 at 3:25 PM, Kostya Vasilyev <[email protected]> wrote: > Yeah, that's it. > > Android only maintains one instance of each pending intent, specifying > FLAG_UPDATE_CURRENT lets you update that instance. > > The check to ensure there is "one instance of each" does not look at > extras. > > -- Kostya > > 21.04.2011 13:47, Brad Stintson пишет: > > My problem is resolved. > > There was a problem in PendingIntent. I rectified that using > > PendingIntent contentIntent = PendingIntent.getBroadcast(context, 0, > intent, PendingIntent.FLAG_UPDATE_CURRENT); > > > > -- > Kostya Vasilyev -- http://kmansoft.wordpress.com > > -- > 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 > -- 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

