Get the current language in device


Question

How can we get the current language selected in the Android device?

1
570
12/25/2011 4:07:58 PM

Accepted Answer

If you want to get the selected language of your device, this might help you:

Locale.getDefault().getDisplayLanguage();
796
5/23/2015 5:14:59 PM

I've checked the Locale methods on my Android 4.1.2 device, and the results:

Locale.getDefault().getLanguage()       ---> en      
Locale.getDefault().getISO3Language()   ---> eng 
Locale.getDefault().getCountry()        ---> US 
Locale.getDefault().getISO3Country()    ---> USA 
Locale.getDefault().getDisplayCountry() ---> United States 
Locale.getDefault().getDisplayName()    ---> English (United States) 
Locale.getDefault().toString()          ---> en_US
Locale.getDefault().getDisplayLanguage()---> English

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon