I think i posted this link 100 times already :D

http://www.adrianvintu.com/blogengine/post/Force-Locale-on-Android.aspx

BR,
Adrian Vintu

http://adrianvintu.com


On Wed, Mar 24, 2010 at 9:07 PM, Johan Nilsson <markupart...@gmail.com>wrote:

> Found a solution for this, guess I mixed up CHANGE_CONFIGURATION with
> android:configChanges="locale" that should be added to the activity
> element in the Manifest. Adding this solves the problem.
>
> Regards,
> Johan Nilsson
>
> On Wed, Mar 24, 2010 at 7:29 PM, Johan Nilsson <markupart...@gmail.com>
> wrote:
> > Did you manage to find a workaround for this?
> >
> > I have the same problem in 2.0 and 2.0.1, the very same code is
> > working perfect in 1.5, 1.6 and 2.1. My implementation[1] is pretty
> > much the same as Menions. I also tried to set the permission
> > 'CHANGE_CONFIGURATION' that I believe is needed when done from an
> > Activity but without luck.
> >
> > Is there a workaround or do I need to disable this option for 2.0.x?
> >
> > Regards,
> > Johan Nilsson
> >
> > [1]
> http://github.com/johannilsson/sthlmtraveling/blob/master/src/com/markupartist/sthlmtraveling/MyApplication.java#L39
> >
> > On Fri, Nov 13, 2009 at 1:15 PM, Menion <menion.as...@gmail.com> wrote:
> >> Hi, I have very similar problem, but still not successfully resolved.
> >> In first activity during onCreate() I have this code
> >>
> >> Resources res = activity.getResources();
> >> DisplayMetrics dm = res.getDisplayMetrics();
> >> Configuration conf = res.getConfiguration();
> >>
> >> // want to set (force) czech language on english phone
> >> Logger.i(TAG, "set CS lang");
> >> Locale loca = new Locale("cs"); // cs_CZ not work too
> >> // !!! THIS LINE DO CYCLE !!!
> >> conf.locale = loca;
> >> res.updateConfiguration(conf, dm);
> >>
> >> as I commented in code, line 'conf.locale = loca;' cause repeating
> >> whole creating and destroying cycle as wrote Nmix in first post. And
> >> also I have to say, than this code worked perfectly until 2.0 SDK. Any
> >> suggestion? I'm using this for ability to choose app language
> >> different from system lang. Thank you very much ...
> >>
> >> --
> >> 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<android-developers%2bunsubscr...@googlegroups.com>
> >> For more options, visit this group at
> >> http://groups.google.com/group/android-developers?hl=en
> >
>
> --
> 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<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
> To unsubscribe from this group, send email to android-developers+
> unsubscribegooglegroups.com or reply to this email with the words "REMOVE
> ME" as the subject.
>

-- 
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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to