Multiple icons ?

wl

Well-Known Member
Licensed User
Longtime User
Hello,

I would like to have multiple icons in my app (I'm using a service that keeps a TCP connection open: depending on whether the TCP was connected one or the other icon is to be displayed)

in the Objects\res\drawable I have the icon.png that was added automatically.

In the same folder I added a file called "ConnectedIcon.png"

Also I added this to the manifest using the manifest editor:
SetApplicationAttribute(android:ConnectedIcon, "@drawable/ConnectedIcon")

As soon as I built the app my cuson icon is removed from the res\drawable folder.

When I make the icon readonly I get an error indicating the icon has a wrong filename.

Thanks yo your help.
 

warwound

Expert
Licensed User
Longtime User
Use only lower case letters for filenames in any resource folder.

B4X:
connectedicon.png

Martin.
 
Upvote 0
Top