Similarly, how do I build an AOSP phone with the all the different locales?
/Ryan -----Original Message----- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of shomari Sent: Friday, December 11, 2009 4:03 PM To: Android Developers Subject: [android-developers] Re: How to select/install a locale other than English ? If you just need to test your "individual" activities, here is some code that you can insert in onCreate: Locale locale = new Locale("fr"); Locale.setDefault(locale); Configuration config = new Configuration(); config.locale = locale; getBaseContext().getResources().updateConfiguration(config, getBaseContext().getResources().getDisplayMetrics()); This should activate your French resources BUT! be warned that this code has stopped working for me since Android 2.0. Seems others are also experiencing problems since the new SDK. Note sure how to fix it yet (so I'd suggest compiling against Android 1.6, if possible) S. On Dec 11, 4:27 am, Syl <sylvain.guyoma...@altran.com> wrote: > My application has resources files in English and French and works on > Android 1.5 and >. > > Inside the emulator, in Settings > Locale & Text > Select Locale, I > can choose English or French. This updates the language of my > application. > > However, when I use the Android Dev Phone 1, only English is available > in the "Select Locale" screen... > > Is it possible to install french locale on Android Dev Phone 1 ? > If so, how can I do this ? > > Thanks for your help ! -- 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 -- 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