How do I generate XML resources at runtime on Android?
The simple answer is that you can't. You can't modify hard-coded stuff into APK resources.
But there are some options. For instance you can:
- Let's say read a resource, modify it, and save it into another external folder (SD card or so)
- Create
AssetManager
over those file(s) - Then create
Resources
which can be later used as ordinary Android resource stored in APK