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. Prevent uninstallation of application in Android

Hello,

I've got an unusual requirement - I need to PREVENT users from
uninstalling my application from their Android platform (not emulator
but the future devices). Is there an official way for doing this? An
unofficial?

If that's not possible exactly, perhaps it may be possible to:
- remove/hide the application from the installed applications list
- abort uninstallation by throwing an error from some standard class
- prevent uninstallation of only some types/configurations of
applications?
- automatically force reinstall of uninstalled application?
- invoke some class in the application before being uninstalled so
that it can send SMS/access a web site to notify someone about this?

Thanks.

Denis

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

2. Restriction on Android.jar!

Hello,

What is this error
The constructor FilePart(String, File) is not accessible due to
restriction on required library E:\Android\android.jar

I've two project. One is working don't have this error, the other
yes!! I'm using the same environment.

What's the problem?

Thanks for your help.
Regards

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

3. re-post: "Hello World"-where it comes from

4. Hello World: don't know where the text field is coming from

5. Program stopped unexpectedly when access database

6. An app idea...Please read

7. Need help with an interesting app idea