How to get application language and device language separately in android?

Debugger picture Debugger · Mar 29, 2017 · Viewed 17k times · Source

My device language is in English and my application language is in Italian.So how I get the device language and application language programmatically ?

Answer

Elsunhoty picture Elsunhoty · Mar 29, 2017

Get system language

Resources.getSystem().getConfiguration().locale.getLanguage();

Get app language

String currentLang = Locale.getDefault().getLanguage();