T Tomas Petrus Active Member Licensed User Longtime User Mar 2, 2016 #1 hi, I am using simple notification: Code: Dim n As Notification n.Initialize n.SetInfo("Some title", "Some text", Main) n.AutoCancel = True n.Icon = "icon" n.Notify(1) I have problem with icon. Small icon at top is there, but the bigger after open notification isn't. Is there any problem with file? It is PNG file 144x144, size 28 kB Thanks for answer
hi, I am using simple notification: Code: Dim n As Notification n.Initialize n.SetInfo("Some title", "Some text", Main) n.AutoCancel = True n.Icon = "icon" n.Notify(1) I have problem with icon. Small icon at top is there, but the bigger after open notification isn't. Is there any problem with file? It is PNG file 144x144, size 28 kB Thanks for answer
DonManfred Expert Licensed User Longtime User Mar 2, 2016 #2 Try smaller image 22 × 22 area in 24 × 24 (mdpi) 33 × 33 area in 36 × 36 (hdpi) 44 × 44 area in 48 × 48 (xhdpi) 66 × 66 area in 72 × 72 (xxhdpi) 88 × 88 area in 96 × 96 (xxxhdpi) http://iconhandbook.co.uk/reference/chart/android/ Upvote 0
Try smaller image 22 × 22 area in 24 × 24 (mdpi) 33 × 33 area in 36 × 36 (hdpi) 44 × 44 area in 48 × 48 (xhdpi) 66 × 66 area in 72 × 72 (xxhdpi) 88 × 88 area in 96 × 96 (xxxhdpi) http://iconhandbook.co.uk/reference/chart/android/
T Tomas Petrus Active Member Licensed User Longtime User Mar 4, 2016 #3 Will it work? in B4A project is only one folder for logo - "draweble" Upvote 0
mangojack Expert Licensed User Longtime User Mar 4, 2016 #4 this might help .. http://www.b4x.com/android/wiki/index.php/Marketing_Your_App#Add_an_icon https://www.b4x.com/android/forum/threads/icons-for-different-size-res-devices.10396/#post-61216 Upvote 0
this might help .. http://www.b4x.com/android/wiki/index.php/Marketing_Your_App#Add_an_icon https://www.b4x.com/android/forum/threads/icons-for-different-size-res-devices.10396/#post-61216
T Tomas Petrus Active Member Licensed User Longtime User Mar 4, 2016 #5 I did it, but it still doesnt work. I always have white space in notification... Upvote 0
B Baris Karadeniz Active Member Licensed User Jun 1, 2016 #6 Tomas, I have same problem. Did you solve it? Upvote 0
barx Well-Known Member Licensed User Longtime User Jun 1, 2016 #7 Set the icon before you setInfo... Upvote 0
JordiCP Expert Licensed User Longtime User Jun 1, 2016 #8 This (setting icon after "Setinfo") can also crash the app in certain phones. I found this with a Wiko Lenny 2 and @Cableguy suffered it Upvote 0
This (setting icon after "Setinfo") can also crash the app in certain phones. I found this with a Wiko Lenny 2 and @Cableguy suffered it