Android Question widget preview image in some other folder ?

AnandGupta

Expert
Licensed User
Longtime User
I am playing with excellent sample of @Sagenut

I made a B4XPages sample and used his widget service. All fine.
There is one aspect that we need to copy the 'preview.png' in the 'res\drawable' folder and mark it read-only, else it will be deleted.

Now I do not want to do it and used '#AdditionalRes: ..\Files' but it is not working.

Any idea how to put the 'preview.png' from another folder to 'res\drawable\' without remembering to keep it there as read-only ?
I mean, I want to have the png in 'Files' or some other folder outside the 'Objects' and the png should be copied to 'res\drawable' from there.
 
Top