Is there a way to access pending notification or the previous
notification that my application created?

When I use Notification manager and use its setLatestEventInfo()
method the last notification (with same intent) is updated. This is
exactly what I want but when I update the notification, I want to
access the existing notification's intent and get the key/value paris
(Extras) and use that information to update the notification.

For example in an SMS notification, I want to to get the current
message (key/value pair or message itself) and update that with the
new value. ( For giving the number of notifications, I can use the
Notification.number, but that I want to access more values).

One workaround that I am thinking is to put the data of first
notification in database or in preference and access it when the
second notification comes. But this is not exactly what I want, it is
easier to use the existing notification instead of storing in database
or preferences.

Related Question: What do you suggest I use, Database or Preferences?
Is there a best practise in terms of performance and elegance?

Thanks and regards
Siju Mathew

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

Reply via email to