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);
    } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE