Android Question Notification icon on top?

ilan

Expert
Licensed User
Longtime User
hi

after successfully implementing the new push notification option thanks to @DonManfred pointing me to the right tutorials i would like to know if i can control the icon that is showing on top of the screen.

the notification it self is showing the app icon but on top i see b4a icon.

i mean this icon:

1754981508152.png


this is the icon of the notification itself (that is fine):

1754981562678.png


thanks
 

ilan

Expert
Licensed User
Longtime User
It should be the SmallIcon you set. Are you sure that this icon comes from this notification?

If this is indeed the app icon then you can change it by replacing Objects\res\drawable\icon.png
hi erel,

the icon is 100% from the notification. it appears when the notification arrives and it goes as soon as i remove the notification.

this is how my icon folders looks like:

1755012057238.png


1755012038913.png


1755012078407.png

Manifest code:

B4X:
SetApplicationAttribute(android:icon, "@mipmap/ic_launcher")
CreateResource(mipmap-anydpi-v26, ic_launcher.xml,
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/background"/>
<foreground android:drawable="@mipmap/foreground"/>
</adaptive-icon>
)


If this is indeed the app icon then you can change it by replacing Objects\res\drawable\icon.png

do i need to change it everytime i build the app?
in that folder you wrote i can see indeed the b4a icon that appears in the notification on top of the phone.

i am running the app on my Samsung S25 ultra.

thanks erel
 
Upvote 0
Top