Locale locale = Locale.getDefault();
--------
Output example: Log.d("log",String.valueOf(locale));
English: en
Japanese: ja
Korean: ko
Chinese: zh
Locale locale = Locale.getDefault();
String language = locale.getLanguage();
--------
Output example: Log.d("log",language);
English: Many(us)
Japanese: JP
Korean: KO
Chinese: Many(tw or something)
Locale locale = Locale.ENGLISH.getLanguage();
※ENGLISH/JAPAN/KOREA/CHINA
String language = locale.getLanguage();
--------
Output example: Log.d("log",language);
English: en
Japanese: ja
Korean: ko
Chinese: zh
Recommended Posts