I am trying to return the locale in my app with this line of code:
Locale current = getResources().getConfiguration().locale;
The minSdkVersion is 15 and compiling with 24. But locale
is deprecated, does it affect my app efficiency?
Is there any other 'not deprecated' way to retrieve the locale?