Re: [android-developers] Multiple notifications, single icon on notification bar?

2010-06-03 Thread TreKing
On Thu, Jun 3, 2010 at 5:30 PM, Mark Wyszomierski  wrote:

> Is there a way to use only one icon on the notification bar, but still keep
> three entries in the pull down?
>

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


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

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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Multiple notifications, single icon on notification bar?

2010-06-03 Thread Mark Wyszomierski
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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en