Marius M.
Marius M.

Reputation: 21

Change string.xml at runtime

I have 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.

Upvotes: 2

Views: 1225

Answers (1)

Macarse
Macarse

Reputation: 93123

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?

Upvotes: 1

Related Questions