Force localized region of an Application

1 vote · 0 comments

Force a particular application's region settings. This would probably be called in the onCreate()

raw ·
copy
· download
Locale locale = new Locale("fr"); Locale.setDefault(locale); Configuration config = new Configuration(); config.locale = locale; getBaseContext().getResources().updateConfiguration(config, getBaseContext().getResources().getDisplayMetrics());

Be the first to comment

Sign in with OpenID