1

I have String.xml files organized by language inside my res folder like:

res/values
res/values-de
res/values-es
res/values-fr
res/values-ga
res/values-hi
res/values-it
...

By default the app make a choose according to device's language or by finding Best Match. Now, I want to include a language selector to let the user choose any of them. Is there a way to read those files without moving them to assets folder or any other place? Is it something it can be done once or should I do it by every activity?

I found some "solutions", but they are not permanent nor clean since they need to be done on each activity.

gian1200
  • 3,670
  • 2
  • 30
  • 59

1 Answers1

0

Never did it myself, but this thread looks promising, just in case you didn't find it.-

Change language programmatically in Android

Community
  • 1
  • 1
ssantos
  • 16,001
  • 7
  • 50
  • 70