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. Article about Android

Hello everybody!

I have to write a Scientific/Technical article for a class and I
thought about Android. The problem is that I've been struggling with
gathering ideas for a theme because I don't want it to be a tutorial.
Got any ideas?

I know that this is a little bit off subject, but this is a community
and I though...let's give it a try.

Thank you in advance

2. Has anybody been able to blur an image?

Hello all, I have to blur an image and I have implemented my own blur
algorithm (gaussian), but it is too slow (I guess it is due to the
emulator and the interpreted nature of the Dalvik VM).

I have found the class but I haven't
been able to apply it successfully to an image (Bitmap).

If I try something like:

        Paint blurPaint = new Paint();
        blurPaint.setMaskFilter(new BlurMaskFilter(radius,

        Bitmap blurred = Bitmap.createBitmap(800, 600,
        Canvas c = new Canvas(blurred);
        c.drawBitmap(originalBitmap, 0, 0, blurPaint);

nothing happens (well, the borders of the image appear with shade,
with seems normal, according to "Note: if the paint contains a
maskfilter that generates a mask which extends beyond the bitmap's
original width/height (e.g. BlurMaskFilter), then the bitmap will be
drawn as if it were in a Shader with CLAMP mode. "

But the image is not blurred!!

I have tried a different approach passing the image to grey scale, the
grey to the alpha channel (because there is only a extractAlpha()
method that takes a Paint) and then:

Bitmap blurredBitmap = bm.extractAlpha(blurPaint, new int[] {0, 0});

But it makes the VM crash!! (seems like a bug inside the
extractAlpha() method, because extractAlpha() without params also
crash). It crashes when I use Bitmap.Config.ARGB_8888 or
Bitmap.Config.ARGB_4444, but not if I use Bitmap.Config.RGB_565, but
then obviously I lose the alpha information and the resulting bitmap
is all black.

Could anybody please provide a working example of blurring an image?

Thanks in advance,

Jose Luis.


3. java-bindings for custom c-library on android?

4. How to insert image?

5. How can I get the current page's url of the web browser?

6. Streaming video with m5 SDK

7. Android Email Team - Email Message Flags and Imap Idle