On Fri, Jul 2, 2010 at 4:31 PM, Connick <[email protected]> wrote: > I can't believe I've just noticed this behavior now ... > > If the user returns to an activity by hitting BACK or relaunches the app > (and last activity is resumed) then previous state is restored.
Normally, when the user presses BACK, the previous activity is still in memory. It was stopped, not destroyed. Hence, the "previous state" never went anywhere. > Whereas calling startActivity( intent ) from within an application implies a > reset state and will not have the same affect as navigating back in the > activity stack. Calling startActivity() usually creates a new instance of the activity, which by definition has no saved state. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- 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

