I am developing an android app and the task is to support three languages. In the first screen the user selects language and rest of the app should appear in selected language.
I can use localization feature such as creating a default res/values/string.xml
and language specific files res/values-fr/strings.xml
. When the app is opened on a device with FR
locale all strings appear translated.
Question: How do I force a locale on button click so that the next activity should use res/values-fr/strings.xml