Upon installation of my Android program I check for device locale:
String deviceLocale=Locale.getDefault().getLanguage();
If deviceLocale i
You can access global locale by -
defaultLocale = Resources.getSystem().getConfiguration().locale;
Take a look at http://developer.android.com/reference/android/content/res/Resources.html#getSystem() -
Returns a global shared Resources object that provides access to only system resources (no application resources)
Update: As pointed out in comments 'locale' field is deprecated and you need to use getLocales() instead.
defaultLocale = Resources.getSystem().getConfiguration().getLocales().get(0);