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. Digest for android-developers@googlegroups.com - 25 Messages in 12 Topics

22.03.2011 0:59, Waleed Basheer :
Thanks guys, adding that ListView with id="@android:id/list" did the trick. I have another layout question that hopefully you guys can answer, I created a RelativeLayout in XML and want to use this layout inside another XML layout but am not sure how to call/use it. I know how to use a Layout created programmatically inside an XML layout file (<com.package.Layout ....>) but am unsure how to do it using one created as an XML layout. Anybody know how?
I *think* you're looking for this: http://developer.android.com/resources/articles/layout-tricks-merge.html -- Kostya Vasilyev -- http://kmansoft.wordpress.com --

2. Is there support in Android for virtual serial ports ?

I apologize if this question has been asked before .....
I want to be able to talk through a USB hub attached to my Android
device and reach 'USB to serial port adapters' (USBSPA) that are
plugged into the hub and communicate with serial devices that are
attached to the serial port of the USBSPA.

Thanks for any help

gusNWdenver  99gus

-- 

3. mediaplayer surface initialized to a frame

4. Dialog, TabView

5. using the keytool for getting google-maps-API-key returns unrecognized option error

6. Attempt to read preferences file without permission

7. Free Text Search