Android Question mipmap icon problem - they just disappear!

bobsteamer

Member
Licensed User
Longtime User
I have generated the mipmap icons and copied them into the "res" folder as described:

"You need to copy these folders to your project’s Objects\res folder, so you have \Objects\res\mipmap-hdpi etc." (Seagrave, Wyken. B4A: Rapid Android App Development using BASIC (Kindle Locations 6151-6152). Penny Press Ltd. Kindle Edition.)

and modified the Manifest as described.

When I run "Compile and run" the mipmap folders are promptly removed from /res/ and I get a manifest error warning saying that the icons cannot be found.
 

DonManfred

Expert
Licensed User
Longtime User
Files in the objects/res folder must be set to READONLY
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
You can create an additional res-folder.
For example in the projectdir (the folder where the objects folder is.

Create a folder "resources". Inside it you create the folders you need (like in objects/res).
You reference this folder using
B4X:
#additionalres: ..\resources
inside your projects main activity.

Files in the folder resources (and subfolders) does not need to be READONLY (they are not removed while compiling)

I dont know it it works for the Icons you created but it is worth a try. I expect it to work.
 
Upvote 0
Top