开发者

Change string.xml at runtime

I h开发者_如何转开发ave a special request to implement dynamic language packs and themes in Android. This basically means:

  1. to download a zip file containing a file named strings.xml (containing the translation)
  2. 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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜