Created
July 25, 2013 09:17
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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