I'm using my notifications as a method of launching an activity to the 
proper state it needs to be in. There can be several notifications that all 
need to launch the same activity, but in different states.

The issue that I'm running into is that the PendingIntent is not being 
unique.

I pass data via extras to the Intent (that does it's lookup via an alias 
string) for the notification, and with the default 
PendingIntent.getActivity with no extra flags passed, the *first* notifications 
Intents data ends up being an extra in the activity. So if I click on the 
3rd notification, extras data from the first comes up. 

If I pass it the FLAG_UPDATE_CURRENT flag, then the 3rd notifications data 
comes through if I click on first or second. If I pass it FLAG_ONE_SHOT, 
then only one notification will work.

So it's rather clear that the PendingIntent is the issue at hand - but I'm 
not sure how to avoid this kind of behaviour. Can anyone help?

-- 
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

Reply via email to