F fishwolf Well-Known Member Licensed User Longtime User Jun 17, 2015 #1 I set the icon notification as from guide: Code: Copy 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: Jun 17, 2015
I set the icon notification as from guide: Code: Copy 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
Erel B4X founder Staff member Licensed User Longtime User Jun 20, 2015 #2 How did you name the notification icon file? Upvote 0
F fishwolf Well-Known Member Licensed User Longtime User Jun 21, 2015 #3 Erel said: How did you name the notification icon file? Click to expand... notification.png, i set as "notification" i have create with this tool http://romannurik.github.io/Android...rim=1&source.space.pad=0&name=ic_stat_example Upvote 0
Erel said: How did you name the notification icon file? Click to expand... notification.png, i set as "notification" i have create with this tool http://romannurik.github.io/Android...rim=1&source.space.pad=0&name=ic_stat_example
Erel B4X founder Staff member Licensed User Longtime User Jun 22, 2015 #4 Can you upload the project (File - Export as zip)? Upvote 0
F fishwolf Well-Known Member Licensed User Longtime User Jun 22, 2015 #5 here the sample project and some screen shot Attachments NotifLillipop.zip NotifLillipop.zip 12.2 KB · Views: 324 Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jun 22, 2015 #6 It shows the correct icon on Nexus 5 running Android 5.1: (Pay attention to the compilation warnings.) Upvote 0
It shows the correct icon on Nexus 5 running Android 5.1: (Pay attention to the compilation warnings.)
F fishwolf Well-Known Member Licensed User Longtime User Jun 22, 2015 #7 Erel said: It shows the correct icon on Nexus 5 running Android 5.1: (Pay attention to the compilation warnings.) Click to expand... 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 54.2 KB · Views: 570 Upvote 0
Erel said: It shows the correct icon on Nexus 5 running Android 5.1: (Pay attention to the compilation warnings.) Click to expand... 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)
F fishwolf Well-Known Member Licensed User Longtime User Jun 22, 2015 #8 on Moto G, the notification icon is very small Attachments Screenshot_2015-06-22-20-52-47.png 208.4 KB · Views: 393 Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jun 23, 2015 #9 It showed the notification icon on the Nexus 5. Upvote 0