Skip to content

Instantly share code, notes, and snippets.

@mosheeshel
Created July 25, 2013 09:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mosheeshel/6078123 to your computer and use it in GitHub Desktop.
Save mosheeshel/6078123 to your computer and use it in GitHub Desktop.
Android Code for start emulator parameters to "force" hebrew And code to force App to load the hebrew resources (based on language string
// parameters for emulator
-prop persist.sys.language=iw -prop persist.sys.country=IL
// Force Locale Change
String languageToLoad = "iw";
Locale locale = new Locale(languageToLoad);
Locale.setDefault(locale);
Configuration config = new Configuration();
config.locale = locale;
getBaseContext().getResources().updateConfiguration(config, null);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment