whenever the orientation is changed the current activity is destroyed and new one is created and onCreate fuction is called again (unless you handled it). Means your activity is refreshed.
Before orientation change happened onRetainNonConfigurationInstan > > ce() is called. You can save you activity state in this function. > > And then in onCreate you can get it by calling > > Object data = getLastNonConfigurationInstance(); > > > Hope it helps. -- Best Regards, Atif Gulzar I ◘◘◘◘ Unicode, ɹɐzlnƃ ɟıʇɐ On Mon, Jan 25, 2010 at 10:29 AM, Atif Gulzar <[email protected]> wrote: > whenever the orientation is changed the onCreate fuction is called again > (unless you handled it). Means your activity is refreshed. > > before orientation change happened onRetainNonConfigurationInstance() is > called. You can save you activity state in this function. > > And then in onCreate you can get it by calling > > Object data = getLastNonConfigurationInstance(); > > > Hope it helps. > > -- > Best Regards, > Atif Gulzar > > I ◘◘◘◘ Unicode, ɹɐzlnƃ ɟıʇɐ > > > > > On Mon, Jan 25, 2010 at 9:23 AM, Marc <[email protected]> wrote: > >> I have a 3 nested ViewFlippers which seem to be working ok except that >> when I change the screen orientation the view flip back to the first >> one of my views, giving the user the impression it went back a few >> steps. >> >> I am a bit stumped as to what to do and was hoping someone had some >> experience with this. Thanks. >> >> -- >> 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] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

