Is it possible to rename or change folder location (similar to cut and paste) of android resource files like .png or .xml (in drawable folder) at runtime by program. Also can I rename or create new folder like drawable at runtime.
Asked
Active
Viewed 1,820 times
2 Answers
3
Is it possible to rename or change folder location (similar to cut and paste) of android resource files like .png or .xml (in drawable folder) at runtime by program.
No.
Also can I rename or create new folder like drawable at runtime.
No. Resources are read-only at runtime.

CommonsWare
- 986,068
- 189
- 2,389
- 2,491
0
No it isn't possible to change anything in the res folder, it is read only. But you can copy / paste somewhere else and then do the editing.
If you would like to know how to copy something from the res folder, it's a good tutorial here.
-
Not sure whether I should ask this question in another thread. So if I can't do it in runtime is it possible to do that by another app? I mean can I create one app to change resources of other app of mine? – Tapas Mukherjee May 09 '15 at 19:31
-
@TapasMukherjee No, that is not possible. The resources are stored inside the APK file that is stored privately inside the system. To edit this you would need to extract the apk, unzip it, extract the resources, do your editing on them, re-compile the resources, and finally build the APK and re-install the new app. Sooo... better make some files on the SD card :) – Chaoz May 13 '15 at 17:13