Android Question Adding image to resource folder

Tim Chapman

Active Member
Licensed User
Longtime User
In this example, a resource folder is used:

In that folder are 5 folders with the same images of different sizes.
These are used by the xml.GetDrawable command.
There is an image for refresh.
I flipped each refresh image so that it looks like go back instead of refresh and saved it to the same folder with a new name. Same name in all 5 folders.
I then used the xml.GetDrawable command and referenced my new image.
I get this error: android.content.res.Resources$NotFoundException: Resource ID #0x0
I know I have the correct name for the new image without the extension the same as the command is used in the example with the original images.

Is there some other step I need to take to add a file to the resource folder?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
 
Upvote 0

Tim Chapman

Active Member
Licensed User
Longtime User
Thank you. I will check it out. Just for my understanding, is there something I am missing about adding a picture the resource folder above? Why doesn't that just work?
What is the nuance that I am missing here?
 
Upvote 0

MicroDrie

Well-Known Member
Licensed User
I understand from what you describe that you are using the device of a flipped image. However, you do not say what goal you want to achieve with this. Alexander Stolte has created a whole series of menus. Perhaps there is one that will be of interest to you.
 
Upvote 0
Top