How to create an icon on the status bar ?

by Sasi » Sun, 07 Mar 2010 03:09:29 GMT

Sponsored Links

I would like to create an icon on the status bar(like bluetooth icon,
battery icon wi-fi icon, etc). I don't want this icon to be a
notification icon where the user can click on it for displaying the
status message. I just want this to be displayed on the status bar
during my app running.

Can you please let me know which API I should use to create icon on
the status bar?


Other Threads

1. register android.intent.action.SEND in Service

Can anyone clarifiy please


2. View not refreshing

Hi all,
I've extended the View class to create a custom View that draws a
shape in the onDraw method. The dimensions of the shape are derived
from calling getMeasuredWidth() and getMeasuredHeight(). This works
fine when I create one and add it to an alert dialog using
builder.setView(). However, if I create an arraylist of customviews
and add one at random to the alert, the actual shape is not drawn. In
the logs, the getMeasuredWidth() and getMeasuredHeight() show as 0
initially, but after adding them to the alert they become 236 and 345,
which is fine. However, the shape does not appear. I've tried all the
suggested methods such as invalidate() but to no avail. Any




3. Is it possible to send sms using adb tool

4. What is the maximum memory capacity

5. ListView inside a listview?

6. register android.intent.action.SEND in Service

7. Support HID Mouse?