Notification Icon Issue

Disco

Member
Licensed User
Longtime User
I am having a strange issue with my notification. When I set the icon to be "icon" it works fine, however, when I set it to be another file name as it states to do in the documentation it doesn't show the icon or the notification. It makes the sound of a notification but nothing shows (icon or message).

B4X:
Dim n As Notification
n.Initialize
n.Icon = "myicon"
n.SetInfo("My Title", "My Message", "") 
n.Notify(1)

I have a 72x72 png icon copied to the "objects\res\drawable" folder with the filename myicon.png but it doesn't want to work. What's also strange is after I run the app (debug via wireless bridge) if I go back to that folder the png file is gone.

I'm sure I'm just doing something silly but for the life of me I'm not sure what it is.

I'm running my app on a nexus 7 with jellybean 4.2.2

Thanks!
 

barx

Well-Known Member
Licensed User
Longtime User
First off, you need to set your .png to 'read-only'.
 
Upvote 0

AndroIwe

Member
Licensed User
Longtime User
I tested this and in my test the icon will have to be named "icon"; with "myicon" it didn´t work.

Also If there is an existing app-icon this icon will be displayed ...
 
Upvote 0
Top