On an android device I can load different languages.
Example:
English (Set as default language)
French
Italian
How can I get this list programmatically?
I know that I can get the language with this code:
Locale.getDefault().getDisplayLanguage()
Or is there a way to set the fallback language of my android app to the second language of the system?
EDIT://
Szenario:
Selected Android System Languages:
- English (Set as default)
- French
- Italian
Supported App Languages:
- string.xml (German) -> set as default
- string-fr.xml (French)
- string-it.xml (Italian)
Current App behavior:
- Displays the app with the German translation.
Expected new App behavior:
- Displays the app with the French translation because French is on the 2nd position in my Android System Language list.