Android Question Icon Notification Lillipop

fishwolf

Well-Known Member
Licensed User
Longtime User
I set the icon notification as from guide:
B4X:
Icon As String [write only]
Sets the icon displayed.

The icon value is the name of the image file without the extension. The name is case sensitive.

The image file should be manually copied to the following folder: source folder\Objects\res\drawable. After this you have to make the file read only. Otherwise it will be deleted on compilation.

You can use "icon" to use the application icon (which is also located in this folder):

n.Icon = "icon"

I set a png image 32x50, all work fine, the icon is showed correct on toolbar and on notification list,
but on Lillipop,
1) The icon on notification list show the icon of application, not icon notification
2) on notification list in block mode, the icon notification is very small.

I have tried to set 5 icons on drawable-hdpi, ecc,ecc, but is worse

What is the correct procedure?

Thanks
 
Last edited:

fishwolf

Well-Known Member
Licensed User
Longtime User
here the sample project and some screen shot
Old.jpg New.jpg
 

Attachments

  • NotifLillipop.zip
    12.2 KB · Views: 170
Upvote 0

fishwolf

Well-Known Member
Licensed User
Longtime User
It shows the correct icon on Nexus 5 running Android 5.1:

SS-2015-06-22_17.53.00.png


(Pay attention to the compilation warnings.)
Yes, the icon un toolbar is correct "temple", but when i drop-down, into notification list show the app icon and not the notification icon,
With androin 4 show the same icon (notification)

 

Attachments

  • New.jpg
    New.jpg
    54.2 KB · Views: 243
Upvote 0

fishwolf

Well-Known Member
Licensed User
Longtime User
on Moto G, the notification icon is very small
28090-1f1b7b231fb7fd9e8b1e9e927ad76887.jpg
 

Attachments

  • Screenshot_2015-06-22-20-52-47.png
    Screenshot_2015-06-22-20-52-47.png
    208.4 KB · Views: 181
Upvote 0
Top