Android Question Notifications icons colors

LucaMs

Expert
Licensed User
Longtime User
- 22 (?) - notifications icons colors are ignored. Alpha levels used as a mask.

I don't know how I have to create the icon.

I can see it (white) in the status bar but not in the list of notifications.

Can you upload an example?


Thank you.



P.S. SDK target 23 - device: Android 4.4.2.
I'm not so sure that the problem is the "format" of the image file (png, of course), given that the icon is shown on the status bar.
 
Last edited:

LucaMs

Expert
Licensed User
Longtime User
Changes in API level 22 (Android 5+) will not affect the behavior of Android 4.4 devices.
Yes but I can see notifications' icons of other apps in the notifications list (4.4.2) but not mine.

[It is just a test so I start the notification directly from the Main Activity]

B4X:
    Dim n As Notification
    n.Initialize
    n.Icon = "prova"
    n.SetInfo("This is the title", "and this is the body.", Me) 'Change Main to "" if this code is in the main module.
    n.Notify(1)
[You can see a known comment ;)]
 
Upvote 0
Top