On Thu, Aug 12, 2010 at 1:27 PM, Chander Shivdasani <[email protected]> wrote: > Hi Guys, I am trying to create multiple notifications in my > application. To identify each notification uniquely, i have given them > an unique identificationId. > > Problem: When a notification is selected, Tabs activity is called > passing the intent. I want to access the unique notificationId of the > notification that was selected in Tabs. I tried intent.putExtra() to > save the notificationId in the intent. But, for multiple notifications > its overwriting the notificationId and returns the latest one. I dont > understand as to why this is happening and how can i avoid this > overwriting of notificationId.
Use different action strings or something for your Intents you wrap in the PendingIntents for your Notifications. You cannot have two outstanding PendingIntents for equivalent Intents. By "equivalent", I mean where the two Intents return true for filterEquals(). "That is, if their action, data, type, class, and categories are the same." So, you need to have the two Intents differ on something beyond extras. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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

