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. dlopen error, with working libraries on other phone

Hello!

I have a problem:
Cant load library with my phone, but an other can open it, why?

logcat message:I/dalvikvm( 2747): Unable to dlopen(/system/lib/
libfmradio_jni.so): Cannot load library: link_image[
1721]:  1959 could not load needed library 'libfmradioplayer.so' for
'libfmradio_jni.so' (reloc_libr
ary[1244]:  1959 cannot locate
'_ZN7android7IBinder19queryLocalInterfaceERKNS_8String16E'...)

and yes, the other lib is there too

Thanks

HaDeSz

-- 

2. For a published application if I upgrade minSdk requirement to higher level what will happen?

Hi All,
I have a published application now if I upgrade minSdk requirement to
higher level what will happen?
1. Published application has minSdk set to 3 that is OS V1.5
2. Now if I increase it to 5 (OS v2.0) and republish (upload upgrade)
people using older OS than 2.0 who already have installed my
application I believe will not see in the market but still will be
able to run from the phone. And once they uninstall it will be gone
for ever. Is that right?
3. What is good practice? What should I do? Have another application
published with higher OS version requirement or upgrade original. My
application is free app so no money is involve. 4
4. If I publish new application while keeping old one with lower OS
version in the market intact, how the people will know that they have
update available who already have installed my applicaiton but has the
phone with higher OS and could run my second application?

Please advice.
Thanks,
JP

-- 

3. My Nexus One is great! When it works, that is.

4. SIGSEGV generated.. somewhere...

5. Anyone has built SDK in cygwin successfully?

6. Is there any way to resizing the icon in option menu item ?

7. App updates and the Market