Re: [android-developers] Re: Need confirmation: it is impossible to programmatically set the default locale in a device, right?

2010-08-18 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/18/10 00:55 , DanH wrote:
 You can in theory do java.util.Locale.setDefault within your
 application, to change the apps Locale from whatever the machine
 default is.  Whether/how it works on Android is hard to say.

Tried and for what I've seen it's has problems. For what I've seen it
doesn't change the locale in parts handled by Android (e.g. selection
of xml resources), so even though it would be picked by my code (where
I use Locale.getDefault()) you'd end up with a mix of two Locales,
which doesn't make any sense.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxrk/YACgkQeDweFqgUGxcgvwCffx7MRC8c+u967Ks2UG7s5n0M
j+0An1k4Efw7z6kECk1dNRJhhQs6PhDg
=5YCz
-END PGP SIGNATURE-

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Need confirmation: it is impossible to programmatically set the default locale in a device, right?

2010-08-17 Thread DanH
You can in theory do java.util.Locale.setDefault within your
application, to change the apps Locale from whatever the machine
default is.  Whether/how it works on Android is hard to say.

On Aug 17, 4:16 pm, Fabrizio Giudici fabrizio.giud...@tidalwave.it
wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 I know that for testing with the emulator, the default locale can be
 changed by proper adb shell commands, as documented by the official
 docs. In the docs there's no mention about doing a similar thing in a
 real device. I assume that there's no other way to change the default
 locale than by manually using the Parameters app, right? Of course,
 I'm talking of testing.

 - --
 Fabrizio Giudici - Java Architect, Project Manager
 Tidalwave s.a.s. - We make Java work. Everywhere.
 java.net/blog/fabriziogiudici -www.tidalwave.it/people
 fabrizio.giud...@tidalwave.it
 -BEGIN PGP SIGNATURE-
 Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
 Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/

 iEYEARECAAYFAkxq/CYACgkQeDweFqgUGxdJRACZAcaTBdKJLIHabu5DGRaeiCVb
 9/wAmwazX9dHxPPdGEVUKuxGvRxEIJHv
 =TNFg
 -END PGP SIGNATURE-

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en