OK thanks for explaining. So, overriding onConfigurationChanged() is for handling resource differences resulting from the configuration change rather than just redrawing the screen (using the existing resources).
On Oct 16, 12:58 am, Dianne Hackborn <[email protected]> wrote: > You are using layout managers that know how to layout to different screen > sizes. Note, however, that any resources you have that change for landscape > vs. portrait will -not- be changed. > > On Thu, Oct 15, 2009 at 4:52 AM, westmeadboy <[email protected]>wrote: > > > > > > > > > I've seen numerous posts about letting the app control the handling of > > orientation changes by setting the "android:configChanges" attribute > > and overriding onConfigurationChanged(). > > > However, it seems that its not necessary to override > > onConfigurationChanged() at all. How is this possible? > > > I have a simple activity containing a ListView containing many items > > (TextViews). I'm not overriding onConfigurationChanged() but when the > > orientation is changed everything is redrawn/scaled perfectly. I can > > confirm that the activity is not being destroyed and recreated. > > > I'm sure there is a perfectly logical explanation for this, but I > > would be very interested to know what that is! > > -- > 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 -~----------~----~----~----~------~----~------~--~---

