2

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.

1 Answer 1

1

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?

Sign up to request clarification or add additional context in comments.

2 Comments

I will be forced in this case to "manually" translate all the interface. Not really an option. I am not sure if another option exists, maybe a 3rd party library allowing skinning and multilanguage with external files.
Not really. You can add a condition such as WHERE language = 'french' to retrieve a specific language

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.