Skip to main content
added 101 characters in body
Source Link
SwiftiSwift
  • 9k
  • 12
  • 70
  • 112

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

Locale.getDefault().getDisplayLanguage(); 

You can use Locale.getDefault().getLanguage(); to get the usual language code (e.g. "de", "en")

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

Locale.getDefault().getDisplayLanguage(); 

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

Locale.getDefault().getDisplayLanguage(); 

You can use Locale.getDefault().getLanguage(); to get the usual language code (e.g. "de", "en")

added 3 characters in body
Source Link
Michael Myers
  • 192.6k
  • 47
  • 301
  • 297

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

Locale.getDefault().getDisplayLanguage(); 

(Note: This answer is edited previously and my code is copy pasted here. I revert it to original version. You can see original code from my answer which is in the same question page: Get the current language in device )

If you want to get the selected language of your device. This might help u

Locale.getDefault().getDisplayLanguage(); 

(Note: This answer is edited previously and my code is copy pasted here. I revert it to original version. You can see original code from my answer which is in the same question page: Get the current language in device )

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

Locale.getDefault().getDisplayLanguage(); 
This answer is edited previously and my code is copy pasted here. I revert it to original version. You can see original code from my answer which is in the same question page: http://stackoverflow.com/questions/4212320/get-the-current-language-in-device/23168383#23168383
Source Link
trante
  • 34.1k
  • 49
  • 197
  • 278

If you want to get the selected language of your device. This might help u

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

(Note: This answer is edited previously and my code is copy pasted here. I revert it to original version. You can see original code from my answer which is in the same question page: Get the current language in device )

If you want to get the selected language of your device. This might help u

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

If you want to get the selected language of your device. This might help u

Locale.getDefault().getDisplayLanguage(); 

(Note: This answer is edited previously and my code is copy pasted here. I revert it to original version. You can see original code from my answer which is in the same question page: Get the current language in device )

This should be in the most rated answer. Since it gives more information than the original. This way people do not have to scroll down to the other ones.
Source Link
Patrick Boos
  • 7.1k
  • 3
  • 38
  • 36
Loading
Source Link
DeRagan
  • 23k
  • 6
  • 43
  • 51
Loading