I have 10 images in drawable directory in my android project and I’m using those images in a gallery.
I want to replace those 10 images programatically upon user request to download new images from the web.
Is this possible to replace the images in drawable of my App with downloaded images?
Thanks in advance
No, this is impossible act. You cant manipulate any resource of APK(read-only).
You can store your image either in your Phone memory(Internal or External) or You can just create a Drawable(cache) at Runtime and flushed it.
You having directory called
/data/data/package_namethis folder will gets delete once you uninstall your Application and for other directory you have to delete manually.