D Disco Member Licensed User Longtime User Feb 20, 2013 #1 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). Code: Copy 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!
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). Code: Copy 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 Feb 20, 2013 #2 First off, you need to set your .png to 'read-only'. Upvote 0
A AndroIwe Member Licensed User Longtime User Feb 20, 2013 #3 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
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 ...
Erel B4X founder Staff member Licensed User Longtime User Feb 21, 2013 #4 Make sure that the file is read-only. It should work. Upvote 0
D Disco Member Licensed User Longtime User Feb 22, 2013 #5 Doh! I must have overlooked that step. Thanks everyone! Works just fine now. Upvote 0