Hi,
http://developer.android.com/reference/android/app/Activity.html
Activity entire lifetime happens between first call to onCreate(Bundle)
through to a single final call to onDestroy().
http://docs.mono-android.net/Android.App.Activity.OnSaveInstanceState(Android.OS.Bundle)
Visible lifetime of activity happens between call to onStart() until call to
onStop()... Everything else is like this;

public class Activity extends ApplicationContext {
     protected void onCreate(Bundle savedInstanceState);
     protected void onStart();
     protected void onRestart();
     protected void onResume();
     protected void onPause();
     protected void onStop();
     protected void onDestroy();
 }

Monodroid implementation is as such;

View.OnSaveInstanceState ()

OnSaveInstanceState ()
Syntax
protected virtual Android.OS.IParcelable OnSaveInstanceState ()
Return 
ValueAndroid.OS.IParcelable<http://docs.mono-android.net/Android.OS.IParcelable>
Remarks

Hook allowing a view to generate a representation of its internal state that
can later be used to create a new instance with that same state. This state
should only contain information that is not persistent or can not be
reconstructed later. For example, you will never store your current position
on screen because that will be computed again when a new instance of the
view is placed in its view hierarchy.



On Fri, Jun 24, 2011 at 8:49 AM, Dean Cleaver <
[email protected]> wrote:

>  According to what I’ve read, if I start my app, navigate through to a
> different screen, then press the home button to run another app, when I
> return to my app, it should return to where it left off?****
>
> ** **
>
> Currently, it’s returning to the first screen, and my first activity is
> getting called (OnCreate). Have I done something wrong, or is this expected?
> ****
>
> ** **
>
> How can I get it to return to the screen the user left from?****
>
> ** **
>
> Dino****
>
> _______________________________________________
> Monodroid mailing list
> [email protected]
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>
>


-- 
Glen Hassell
Inner Technique
http://innertech.com.au/
Office: 03 9687 0006
Mobile: +61 (0) 438 340 385
_______________________________________________
Monodroid mailing list
[email protected]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to