Android Question Library an icons

Nickelgrass

Active Member
Licensed User
Longtime User
Hello,
I have made a library in B4A that has a code and a service module. In the service I use notifications with several icons.
Now the problem is if I include the lib then the icons don't show. How can I embed and use the Icons in the library?
Thanks!

Regards
 

DonManfred

Expert
Licensed User
Longtime User
what is the code you use to create the notification?
 
Upvote 0

Nickelgrass

Active Member
Licensed User
Longtime User
Hi,
I have several PNG's name with colors in the drawable folder of the library. Then I use

noti.AutoCancel = True
noti.Icon = "green"
noti.SetInfo("SUCCESS", "some text")
noti.Notify(1)

Do I have to set a different icon path?

Thanks!
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
No. If you have jars with resources you need to use this resources in your app too.
Copy them to the right folder and make them readonly so they can not be deleted when compiling.
You need to add the info where to place new icons to users of your lib too.

I have something in mind but i´m not sure if it works or is true at all.

I remember darkly that there is a way to get resources out of an jar. Search forum about that

And a jar is just a zip-file. So it should be possible to extend th jar with some images.

As i said; not sure about this!

Edit: See this.
 
Upvote 0
Top