Last active
August 10, 2019 17:13
-
-
Save moisesaq/c67c0488132b3b01e141044ead750607 to your computer and use it in GitHub Desktop.
[Android]get current language of device
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment