Code example for Locale

Methods: setDefault

0
        final Configuration config = new Configuration();
        config.locale = locale1;
        final Resources resources = CgeoApplication.getInstance().getResources();
        resources.updateConfiguration(config, resources.getDisplayMetrics());
 
        Locale.setDefault(locale2);
        TestSettings.setUseImperialUnits(!metric);
    } 
} 
Contextual code suggestions in your IDE  Get Codota for Java