I was doing this way:
context.getResources().getConfiguration().locale
Configuration.locale is deprecated if target is 24. So I made this c
You could use Locale.getDefault(), which is the Java standard way of getting the current Locale.
Locale.getDefault()
Locale