Saturday 30 July 2016

android - Get the current language in device



How can we get the current language selected in the Android device?


Answer



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




Locale.getDefault().getDisplayLanguage();

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...