Change string.xml at runtime
I h开发者_如何转开发ave a special request to implement dynamic language packs and themes in Android. This basically means:
- to download a zip file containing a file named strings.xml (containing the translation)
- replace in the application the file /res/values/strings.xml with the one downloaded
Is this possible? Thank you for your help.
No. Things inside the Res folder are static and you can't recreate the R
class in runtime.
Why don't you try using sqlite for your situation?
精彩评论