[android-developers] Re: How to display icon on the status bar?

2010-03-29 Thread guru
Hi

How to display one icon with number of notification  like ICON(2)...

is there any way to do it.? if i call below code multiple times, it
will display separate icons for invocation.

Regards
Gururaja



On Mar 9, 1:35 pm, a a harvey.a...@gmail.com wrote:
 NotificationmyNoti = newNotification();
 myNoti.icon= iconid;
 myNoti.tickerText = ...//you test.. etc

 .
 NotificationManager notiManager;
 notiManager.notify(0, myNoti);//can show
 youriconon the statebar.

 2010/3/9 Sasi sasikumar.gan...@gmail.com:

  Hi-

  I want to create aniconon thestatusbarwithoutthenotification
  message. Is it possible to create aniconon thestatusbarwithout
  having thenotificationmessage? I just want to display theiconand
  not to allow the user to click on it display the any message.

  thanks.

  --
  You received this message because you are subscribed to the Google
  Groups AndroidDevelopers group.
  To post to this group, send email toandroid-develop...@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

-- 
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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


Re: [android-developers] Re: How to display icon on the status bar?

2010-03-29 Thread Mark Murphy
guru wrote:
 How to display one icon with number of notification  like ICON(2)...
 
 is there any way to do it.? if i call below code multiple times, it
 will display separate icons for invocation.

If you keep the same ID value for notify(), it should not add multiple
icons.

See here for an example project showing the use of the .number field on
Notification:

http://github.com/commonsguy/cw-android/tree/master/Notifications/Notify1/

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

-- 
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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] Re: How to display icon on the status bar?

2010-03-09 Thread James Wang
I do not think you can do it with SDK and you should ask this question
on android-porting

-- 
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