Android Question Automatic deletion of files in res\drawable

Alessandro71

Well-Known Member
Licensed User
Longtime User
Given the new notification behavior in SDK 26, I'm using a notification.png icon in the res\drawable folder.
I've set the read-only flag as instructed, but since I'm often moving my dev environment to different machines using Google Drive, the flag sometimes gets reset.
If the RO attribute is missing I noticed that the notification.png file is deleted after each compilation, while the icon.png file does not, even if it's missing the RO also.
Are there any others "do-not-delete" built-in filenames I can use for my notification icon?
 

DonManfred

Expert
Licensed User
Longtime User
Put the file into your Assets (Files folder) and use it in your code to define the Image for the Notification.
 
Upvote 0

Semen Matusovskiy

Well-Known Member
Licensed User
Instead of subfolder res, create folder, let's say resources (the same level as Files, Objects).
Place here drawable, anim etc. with your files. Add #AdditionalRes: ../resources in main activity. B4A will not touch this folder
 
Upvote 0
Top