views:

209

answers:

1

Hello,

I wanted to create a notification without the icon in the status bar (the state that is not expanded). I tried the custom expanded view and set the icon for this view only. But it did not work. When I give 0 as icon to the constructor, the icon disappears but notification also does not appear in the expanded view.

Notification notification = new Notification(0, "", 0);

I tried a lot of combinations but didn't come out with a solution. By the way, I know it is working because I saw this feature in some apps. Thanks.

A: 

You could use a transparent images as the notification icon. but as molnarm already mentioned, the user won't notify that there is a new notification

Roflcoptr
This is not possible, even though you gave an icon in 1 pixel dimension. it reserves what it should be and displays it white.
Omer
then use a black image?
Roflcoptr
I just don't want to reserve an area there. It is doesn't matter black, white or transparent.
Omer