Please note, consuming configuration change events is NOT a way to get
around having to deal with an activity being destroyed and recreated -- you
still must deal with this to behave properly when your application goes to
the background and must be killed to have memory elsewhere, so that when the
user returns you will be brought back in the proper state.

There should be no need for an application to just blindly take all
configuration change events.  Certainly, are you really going to be able to
do the right thing for a locale change?  Reload every single string you
have?  It's far easier to let the system do this.

On Thu, Oct 8, 2009 at 10:48 AM, Megha <[email protected]> wrote:

>
>
>
> On Oct 8, 6:53 am, Stefan <[email protected]> wrote:
> > hi,
> >
> > i have a question:
> > If I want to handle the configuration changes in my own way, which
> > things must I consider??
> > In the AndroidManifest.xml, I can set:
> > - mcc, mnc, locale, touchscreen, keyboard, keyboardHidden, navigation,
> > orientation, screenLayout, fontScale
> >
> Yes, that includes all configuration changes.
>
> > Are there more possible configChanges or "only" this ten??? What
> > happened, if someone call me. I think there will be no recreation of
> > the activity after finish the call?
>
> Your Activity will be recreated if its not already running.
>
> >
> > And if I use the onConfigurationChanged-function - must I really setup
> > the view a second time like in onCreate()?? And must I save the
> > states of the variables and so on?? I don't think so!?
> >
> Yes, for example if you are using different layouts based on whether
> the orientation
> is portrait or landscape, you do need to re-layout your Activity's
> Views.
> > Thanks,
> > Stefan
> >
>


-- 
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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to