There is a "bug" when changing the Locale on the Motorola Milestone. The font gets smaller each time the updateConfiguration(...) is called.
See here an article on this and the fix: http://adrianvintu.com/blogengine/post/Force-Locale-on-Android.aspx BR, Adrian Vintu On Sun, Dec 27, 2009 at 11:13 PM, Evgeny V <[email protected]> wrote: > Yes. I added to each activity too after more tests! > > > On Sun, Dec 27, 2009 at 9:47 PM, shomari <[email protected]> wrote: > >> I've been looking for a long time at a solution to this problem (ever >> since 2.0 was released). >> I can confirm that by adding "locale" to configChanges fixes the >> problem. >> >> My exact xml entry is: >> android:configChanges="orientation|keyboardHidden|locale" >> >> I've actually added the "locale" parameter to each of my Manfiest >> activities (to be safe), however, it did seem to fix the problem just >> by adding into the Launcher as mentioned before. >> >> So relieved to see this fixed :) >> >> S. >> >> On Nov 12, 2:31 pm, monmonja <[email protected]> wrote: >> > Add android:configChanges="locale" to your activity nodes on the >> > manifest file >> > <activity android:name=".Main" android:configChanges="locale" >> > android:label="@string/app_name" /> >> > >> > Update the post onhttp:// >> almondmendoza.com/2009/01/28/force-localize-an-application-on-... >> > :) >> > >> > monmonja >> > >> > On Nov 10, 3:43 pm, Kaj Bjurman <[email protected]> wrote: >> > >> > > I don't think that the process is crashing, at least not in the >> > > emulator since I can see all these logging messages: >> > >> > > 11-07 23:11:33.849: WARN/UsageStats(61): Something wrong here, didn't >> > > expect "mypackagename" to be resumed >> > >> > > There are lots of them. It looks like it gets stuck in some kind of >> > > loop. >> > >> > > Btw. It used to work, and I think it is great that it used to work. >> > > There are lots of people in the world who speak more than one >> > > language, where none of the languages are English, or they might >> > > understand English but have two other languages as preferred >> > > languages. >> > >> > > Setting the OS locale to Swedish would make the application display >> > > the English resources if Swedish isn't available, but an application >> > > that I have installed might support e.g .Spanish, and that could be >> > > preferred over English. >> > >> > > On 9 Nov, 22:15, Dianne Hackborn <[email protected]> wrote: >> > >> > > > No, changing the application's locale like this is not supported, >> and will >> > > > not entirely work. It shouldn't cause an activity to restart >> though... >> > > > actually I can't imagine how this would cause an activity to >> restart, since >> > > > this method is much lower-level than the activity. Maybe the >> process is >> > > > crashing for some reason in this call? >> > >> > > > 2009/11/9 Bahadır Yağan <[email protected]> >> > >> > > > > Does anyone know if this method of changing Locale just for one >> application >> > > > > is a supported functionality? >> > >> > > > > -- >> > > > > Bahadır Yağan >> > >> > > > > On Mon, Nov 9, 2009 at 12:18 PM, ydario <[email protected]> wrote: >> > >> > > > >> Hi, >> > >> > > > >> found the same problem here. Even this kind of code fails: >> > >> > > > >> Configuration config = >> context.getResources().getConfiguration(); >> > > > >> config.locale = newLocale; >> > > > >> context.getResources().updateConfiguration(config, >> > > > >> >> context.getResources().getDisplayMetrics()); >> > >> > > > >> where newLocale is a properly created locale instance. >> > >> > > > >> The strange thing is that I can get the above code to work when >> my >> > > > >> wizard library is running; the library code does not implement a >> new >> > > > >> activity, but simply uses the existing one. I compared code, but >> I >> > > > >> cannot find other real differences. >> > >> > > > >> And I'm getting the resume problem also when I start an activity >> from >> > > > >> a non-GUI class, this worked from 1.1 to 1.6 :-( >> > >> > > > >> Yuri >> > >> > > > >> -- >> > > > >> 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]<android-developers%[email protected]><android-developers%2Bunsubs >> [email protected]> >> > > > >> 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 >> [email protected] >> > > > > To unsubscribe from this group, send email to >> > > > > [email protected]<android-developers%[email protected]><android-developers%2Bunsubs >> [email protected]> >> > > > > For more options, visit this group at >> > > > >http://groups.google.com/group/android-developers?hl=en >> > >> > > > -- >> > > > Dianne Hackborn >> > > > Android framework engineer >> > > > [email protected] >> > >> > > > Note: please don't send private questions to me, as I don't have >> time to >> > > > provide private support, and so won't reply to such e-mails. All >> such >> > > > questions should be posted on public forums, where I and others can >> see and >> > > > answer them. >> >> -- >> 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]<android-developers%[email protected]> >> 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 [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > <http://www.google.com/search?q=There%20is%20a%20%22bug%22%20when%20changing%20the%20Locale%20on%20the%20Motorola%20Milestone.%20The%20font%20gets%20smaller%20each%20time%20the%20updateConfiguration%28...%29%20is%20called.%0D%0A%0D%0ASee%20here%20an%20article%20on%20this%20and%20the%20fix:%20http://adrianvintu.com/blogengine/post/Force-Locale-on-Android.aspx%0D%0A%0D%0ABR,%0D%0AAdrian%20Vintu>
-- 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

