Re: [android-developers] Re: Force locale for an application, bug in 2.0?

2010-01-15 Thread Adrian Vintu
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  wrote:

> Yes. I added to each activity too after more tests!
>
>
> On Sun, Dec 27, 2009 at 9:47 PM, shomari  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  wrote:
>> > Add android:configChanges="locale" to your activity nodes on the
>> > manifest file
>> > > > 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  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  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 
>> >
>> > > > > 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  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
>> android-developers@googlegroups.com
>> > > > >> To unsubscribe from this group, send email to
>> > > > >> android-developers+unsubscr...@googlegroups.com> cr...@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> cr...@googlegroups.com>
>> > > > > For more options, visit this group at
>> > > > >http://groups.google.com/group/android-developers?hl=en
>> >
>> > > > --
>> > > > Dianne Hackborn
>> > > > Android framework engineer
>> > > > hack...@android.com
>> >
>> > > > Note: please 

Re: [android-developers] Re: Force locale for an application, bug in 2.0?

2009-12-27 Thread Evgeny V
Yes. I added to each activity too after more tests!

On Sun, Dec 27, 2009 at 9:47 PM, shomari  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  wrote:
> > Add android:configChanges="locale" to your activity nodes on the
> > manifest file
> >  > 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  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  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 
> >
> > > > > 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  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
> android-developers@googlegroups.com
> > > > >> To unsubscribe from this group, send email to
> > > > >> android-developers+unsubscr...@googlegroups.com cr...@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 cr...@googlegroups.com>
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/android-developers?hl=en
> >
> > > > --
> > > > Dianne Hackborn
> > > > Android framework engineer
> > > > hack...@android.com
> >
> > > > 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 android-developers@googlegroups.com
> To unsubscribe from this g

[android-developers] Re: Force locale for an application, bug in 2.0?

2009-12-27 Thread shomari
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  wrote:
> Add android:configChanges="locale" to your activity nodes on the
> manifest file
>  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  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  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 
>
> > > > 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  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 
> > > >> android-developers@googlegroups.com
> > > >> To unsubscribe from this group, send email to
> > > >> android-developers+unsubscr...@googlegroups.com > > >>  cr...@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 > > >  cr...@googlegroups.com>
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/android-developers?hl=en
>
> > > --
> > > Dianne Hackborn
> > > Android framework engineer
> > > hack...@android.com
>
> > > 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 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: Force locale for an application, bug in 2.0?

2009-12-26 Thread EvgenyV
It fixed the issue after i added it to LAUNCHER only!

Thanks a lot!

On Nov 12, 9:31 pm, monmonja  wrote:
> Add android:configChanges="locale" to your activity nodes on the
> manifest file
>  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  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  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 
>
> > > > 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  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 
> > > >> android-developers@googlegroups.com
> > > >> To unsubscribe from this group, send email to
> > > >> android-developers+unsubscr...@googlegroups.com > > >>  cr...@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 > > >  cr...@googlegroups.com>
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/android-developers?hl=en
>
> > > --
> > > Dianne Hackborn
> > > Android framework engineer
> > > hack...@android.com
>
> > > 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.- Hide quoted text -
>
> - Show quoted text -

-- 
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: Force locale for an application, bug in 2.0?

2009-12-26 Thread EvgenyV
Shuold I add it to each activity or only to LAUNCHER activity?

Thanks,
Evgeny

On Nov 12, 9:31 pm, monmonja  wrote:
> Add android:configChanges="locale" to your activity nodes on the
> manifest file
>  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  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  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 
>
> > > > 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  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 
> > > >> android-developers@googlegroups.com
> > > >> To unsubscribe from this group, send email to
> > > >> android-developers+unsubscr...@googlegroups.com > > >>  cr...@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 > > >  cr...@googlegroups.com>
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/android-developers?hl=en
>
> > > --
> > > Dianne Hackborn
> > > Android framework engineer
> > > hack...@android.com
>
> > > 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.- Hide quoted text -
>
> - Show quoted text -

-- 
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: Force locale for an application, bug in 2.0?

2009-12-26 Thread EvgenyV
Hi Dianne,

I have exactly the same problem. The functionality was broken since I
move to v10 and now to 2.0.1
I wrote the question as "Different behaviour between SDK 1.6 and SDK
2.0 - bug? Please help." in developers forum month ago but no answer.
Anyway when i'm commenting the line
context.getBaseContext().getResources().updateConfiguration
(config, context.getBaseContext().getResources().getDisplayMetrics());
the application is starting properly. No localization changes is
available but at least it's running.

I can send you source code if you need to investigate it.

Thanks,
Evgeny


On Nov 9, 11:15 pm, Dianne Hackborn  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 
>
>
>
>
>
> > 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  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 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
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> 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.- Hide quoted text -
>
> - Show quoted text -

-- 
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: Force locale for an application, bug in 2.0?

2009-11-13 Thread Kaj Bjurman
Thanks. I'll try that.


On 12 Nov, 20:31, monmonja  wrote:
> Add android:configChanges="locale" to your activity nodes on the
> manifest file
>  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  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 OSlocaleto 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  wrote:
>
> > > No, changing the application'slocalelike 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 
>
> > > > Does anyone know if this method of changingLocalejust for one 
> > > > application
> > > > is a supported functionality?
>
> > > > --
> > > > Bahadır Yağan
>
> > > > On Mon, Nov 9, 2009 at 12:18 PM, ydario  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 createdlocaleinstance.
>
> > > >> 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 
> > > >> android-developers@googlegroups.com
> > > >> To unsubscribe from this group, send email to
> > > >> android-developers+unsubscr...@googlegroups.com > > >>  cr...@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 > > >  cr...@googlegroups.com>
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/android-developers?hl=en
>
> > > --
> > > Dianne Hackborn
> > > Android framework engineer
> > > hack...@android.com
>
> > > 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 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: Force locale for an application, bug in 2.0?

2009-11-12 Thread monmonja
Add android:configChanges="locale" to your activity nodes on the
manifest file


Update the post on 
http://almondmendoza.com/2009/01/28/force-localize-an-application-on-android/
:)

monmonja

On Nov 10, 3:43 pm, Kaj Bjurman  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  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 
>
> > > 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  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 android-developers@googlegroups.com
> > >> To unsubscribe from this group, send email to
> > >> android-developers+unsubscr...@googlegroups.com > >>  cr...@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 > >  cr...@googlegroups.com>
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com
>
> > 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 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: Force locale for an application, bug in 2.0?

2009-11-09 Thread Kaj Bjurman
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  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 
>
>
>
>
>
> > 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  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 android-developers@googlegroups.com
> >> To unsubscribe from this group, send email to
> >> android-developers+unsubscr...@googlegroups.com >>  cr...@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 > cr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> 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 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: Force locale for an application, bug in 2.0?

2009-11-09 Thread Kaj Bjurman
No, I haven't reported it yet. The bug reporting page wanted some
information that I don't have access to right now, I will try to
remember to report the bug later today when I get home.


On 9 Nov, 20:39, Bahadır Yağan  wrote:
> As a workaround you can recommend your users the MoreLocale application to
> change their Locale to Swedish.
>
> But I am also interested in application level locale setting. Did you report
> the issue?
>
> Best
>
> --
> Bahadır Yağan
>
> 2009/11/9 Bahadır Yağan 
>
>
>
> > 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  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 android-developers@googlegroups.com
> >> To unsubscribe from this group, send email to
> >> android-developers+unsubscr...@googlegroups.com >>  cr...@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


[android-developers] Re: Force locale for an application, bug in 2.0?

2009-11-09 Thread ydario
Hi Dianne,

> No, changing the application's locale like this is not supported, and will
> not entirely work.

yes, you need to restore locale on screen rotation or activity change,
but this easy to do.

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

I have at least 2 different applications with this problem, and
probably a 3rd too. And I'm not alone.

Since android 2.0 source code is not available, where can I look?

debugger shows updateConfiguration returns correctly, and no
exceptions are thrown.

thanks,

Yuri

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


Re: [android-developers] Re: Force locale for an application, bug in 2.0?

2009-11-09 Thread Dianne Hackborn
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 

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



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

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

Re: [android-developers] Re: Force locale for an application, bug in 2.0?

2009-11-09 Thread Bahadır Yağan
As a workaround you can recommend your users the MoreLocale application to
change their Locale to Swedish.

But I am also interested in application level locale setting. Did you report
the issue?

Best

-- 
Bahadır Yağan

2009/11/9 Bahadır Yağan 

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

Re: [android-developers] Re: Force locale for an application, bug in 2.0?

2009-11-09 Thread Bahadır Yağan
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  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 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

[android-developers] Re: Force locale for an application, bug in 2.0?

2009-11-09 Thread ydario
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 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: Force locale for an application, bug in 2.0?

2009-11-08 Thread Kaj Bjurman
Thanks I'll do so.

Btw. This was the only way that I knew of in which I would be able to
let users select Swedish as application language. The Android OS in
1.5 did not have a Swedish locale in the settings menu, and my 1.6
still doesn't have a Swedish locale.



On 8 Nov, 14:28, Mark Murphy  wrote:
> Kaj Bjurman wrote:
> > Thanks for the answer. The workaround works, but that does
> > unfortunately mean that users who got Android 2.0 won't be able to use
> > Swedish in the application.
>
> > Btw. Do you know if I should report the updateConfiguration bug?
>
> Not sure. I wasn't aware that the technique your using was supposed to
> work. I was under the impression that only the user could change the
> language. But, this is not an area I have spent tons of time in.
>
> If it worked on 1.5 and 1.6, it's probably worth posting to b.android.com.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android App Developer Books:http://commonsware.com/books

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


Re: [android-developers] Re: Force locale for an application, bug in 2.0?

2009-11-08 Thread Mark Murphy
Kaj Bjurman wrote:
> Thanks for the answer. The workaround works, but that does
> unfortunately mean that users who got Android 2.0 won't be able to use
> Swedish in the application.
> 
> Btw. Do you know if I should report the updateConfiguration bug?

Not sure. I wasn't aware that the technique your using was supposed to
work. I was under the impression that only the user could change the
language. But, this is not an area I have spent tons of time in.

If it worked on 1.5 and 1.6, it's probably worth posting to b.android.com.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

-- 
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: Force locale for an application, bug in 2.0?

2009-11-08 Thread Kaj Bjurman
Thanks for the answer. The workaround works, but that does
unfortunately mean that users who got Android 2.0 won't be able to use
Swedish in the application.

Btw. Do you know if I should report the updateConfiguration bug?


On 7 Nov, 23:35, Mark Murphy  wrote:
> Kaj Bjurman wrote:
> > Does anyone know how to check the API version on the phone so that I
> > at least can add a quickfix? (A conditional check and only invoce
> > updateConfiguration if the API version is less than 5)
>
> android.os.Build.VERSION has the values you need. Note that the integer
> version is relatively new, so you probably want to use the string instead.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android 1.6 Programming Books:http://commonsware.com/books

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