Skip to content
Search

Android:Locale

lastmod 2018-08-17created 2016-11-291 edits

Sample code to check whether the locale is Korea

public static final boolean getLocale(Context c) {
    Locale locale= this.getResources().getConfiguration().locale;
    return locale.equals(Locale.KOREA);
}

See also