Android

Locale. Get current language

tomato13 2011. 9. 27. 17:37

http://www.desctrl.com/blog/2011/06/08/android-locale-get-current-language/      


        String locale = this.getResources().getConfiguration().locale.getDisplayName();

        Log.v("desctrl", "Locale: " + locale);

        locale = java.util.Locale.getDefault().getDisplayName(); 

        Log.v("desctrl", "Locale 2: " + locale);