Android Question Notification Icon

Prosg

Active Member
Licensed User
Longtime User
Hello,


I have the icon in the barNotification but when i open the panel of the phone the text is without icon

Why ?



B4X:
For i = 1 To 2
        Dim n As Notification
        n.Initialize
     
        n.SetInfo("Notification " & i, "abcde", Me)
        n.Icon = "icon"
        n.Notify(i)
    Next
 
Last edited:

Prosg

Active Member
Licensed User
Longtime User
i try advance notification library and always the same :(

the icon is not display on the dropdown notifications window icon

I test to start a new project... same

I test on Samsung Edge & Galaxy tabs same problem

i don't understand :(
 
Upvote 0

Prosg

Active Member
Licensed User
Longtime User
XD i got it !

This code works
B4X:
        Dim n As AdvancedNotification
          n.Initialize
          n.Icon = "icon"
          n.SetInfo("Notification" , "abcde", Main)
          n.Notify(1)

This code bug (no windows icon)

B4X:
        Dim n As AdvancedNotification
          n.Initialize
          n.SetInfo("Notification" , "abcde", Main)
          n.Icon = "icon"
          n.Notify(1)

is it a bug ?
 
Upvote 0

barx

Well-Known Member
Licensed User
Longtime User
XD i got it !

This code works
B4X:
        Dim n As AdvancedNotification
          n.Initialize
          n.Icon = "icon"
          n.SetInfo("Notification" , "abcde", Main)
          n.Notify(1)

This code bug (no windows icon)

B4X:
        Dim n As AdvancedNotification
          n.Initialize
          n.SetInfo("Notification" , "abcde", Main)
          n.Icon = "icon"
          n.Notify(1)

is it a bug ?

It's not a bug, you have to set the icon before calling SetInfo.

It is documented somewhere but I cannot remember where. Maybe the beginners guide, maybe Android Docs.....
 
Upvote 0
Top