On Android, why are the following calls to get the locale different?
Locale.getDefault()
and
getResources().getConfiguration().locale
On Android, why are the following calls to get the locale different?
Locale.getDefault()
and
getResources().getConfiguration().locale
The locale selected on the device when the app was launched is the default locale returned by:
Locale.getDefault()
The locale currently selected on the device is the current locale (can be different from the default locale if the user changed the setting after the app launch) returned by:
getResources().getConfiguration().locale