I know that one can set the locale using
adb shell
echo de-DE > /data/locale;stop;sleep 5;start
but I wanted to know if it is also possible programmatically? (at
least in the emulator?)
Directly performing Runtime.getRuntime().exec("echo de-DE> /data/
locale") shows:
01-18 16:03:26.694: ERROR/ProcessManager(3089): Error running echo:
Permission denied
(Is there a permission that would allow me to perform this?)
Then there is also the following permission:
<uses-permission
android:name="android.permission.CHANGE_CONFIGURATION" />
but it seems
Locale.setDefault(Locale.GERMAN);
does not have any effect (while Locale.getDefault() works well).
Is there any other way I could try to write a small switching
application on the emulator, to make my life a little bit easier, when
testing several languages?
Peli
www.openintents.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---