Notification - Getting Pending Notifications

by Siju » Thu, 01 Oct 2009 06:05:54 GMT


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

--~--~---------~--~----~------------~-------~--~----~



Notification - Getting Pending Notifications

by Siju » Sat, 03 Oct 2009 19:16:32 GMT


 Hi All,

Any ideas how to do this? Sorry for the reminder mail.

Regards,
Siju Mathew



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. Upgrade ROM Magic

Setelah sekian lama baca-baca baik di forum, milis dsb akhirnya barusan saya 
coba-coba install recovery amon ra v1.5.2H dan cyanogen 4.2.13 di Magic dr ROM 
sebelumnya 4.2.8
Saya mau tanya utk boot awal nya kok lama bgt ya?
Di screen hanya ada tulisan htc magic, tulisan android nya lama bgt nih gak 
muncul apa memang utk boot awal sehabis upgrade emang agak lama?

-- 
--------------------
"Indonesian Android Community [id-android]" 

Join,  visit the following page:

2. Data access during a phone call on the emulator

I have an app that needs network access during phone calls, which
requires android to be in 3G or Wifi mode. Unfortunately, my emulator
is displaying GPRS and it's not clear how to switch it (or if this is
even possible). Neither the netspeed flag for the emulator nor the
*#*#4636#*#* test mode option does the job.

Does anyone know how to make the android emulator run in 3G or WiFi
mode?

This same issue was raised in the past, but didn't have any clear
resolution:

3. Emulator DNS/network problems...is there a posted fix?

4. Android Supportted Screent Resolution

5. Sending Unicode characters in unit tests?

6. Orientation Change effect on Spinner control

7. web page not available