Multiple notifications, single icon on notification bar?

by Mark Wyszomierski » Fri, 04 Jun 2010 06:30:39 GMT


Sponsored Links
 Hi,

If I do:

   for (int i = 0; i < 3; i++) {
       NotificationManager.notify(i, notification);
   }

I'll get three notification icons on the notification bar, and three
list items in the pull down. Is there a way to use only one icon on
the notification bar, but still keep three entries in the pull down? I
tried doing:

   for (int i = 0; i < 3; i++) {
       if (i > 0) {
           notification.number = -1;
       }
       NotificationManager.notify(i, notification);
   }

but no luck. The docs say that setting notification.number to zero or
a negative # will prevent it from showing up on the notifications bar,

Thanks

--



Multiple notifications, single icon on notification bar?

by TreKing » Fri, 04 Jun 2010 08:52:03 GMT


 



Don't think so - each icon represents an entry in the pull down - having one
icon represent multiple entries wouldn't really make sense.



This prevents the number that's overlayed on the icon from showing up, not
the icon itself.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
 http://sites.google.com/site/rezmobileapps/treking 

--


Sponsored Links


Multiple notifications, single icon on notification bar?

by Zsolt Vasvari » Fri, 04 Jun 2010 14:34:23 GMT


 Can't you do what GMail does and shows the # of items in parantheses?






--



Multiple notifications, single icon on notification bar?

by Frank Weiss » Mon, 07 Jun 2010 09:39:25 GMT


 


Can't you do what GMail does and shows the # of items in parantheses?





sites.google.com/site/rezmobileapps/treking


--



Other Threads

1. Passing parameters to new Activity

Hi all,

I'm programming an Activity that launches a second one through
startActivity just like in the Forwarding example. The main difference
is that I'd like to pass some data to the second Activity when
starting it, for example an item selected in a list owned by the first
Activity. I can't find how to do that... Am I missing something? I
guess I do.

Thank you for helping me.

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

2. what is difference between View's Canvas and Bitmap's Canvas

hi all,
Can anyone explain me the difference between View's Canvas and Bitmaps
Canvas

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

3. cyclic "android.process.acore" failure (1.0r2 and 1.1r1)

4. Accessing the sound input/output stream in the phone (sound modulation, sound synthesis, DTMF)

5. Help! Problem with DDMS Location Controls !!

6. Can I force Android to open a network connection on a specified network interface/network type ?

7. How to do a google search?