title: Navigating between pages
body: <p>I am new in this area and have such situation that i have two pages:</p>
  
  <pre><code>MainActivity.axml
  SecondActivity.axml
  </code></pre>
  
  <p>I have a button in MainActivity called BtnOther, in this button i want to navigate to SecondActivity. In SecondActivity i have button btnBackToExisting1stPage which i want to go back to MainActivity. Generally it works but:</p>
  
  <ol>
  <li><p>After either BtnOther or android back arrow is clicked application is going to minimize on emulator and not staying in front. Why is that and how to avoid that?</p></li>
  <li><p>I would like when pressing either BtnOther or back arrow to go back from SecondActivity to MainActivity BUT to open exact MainActivity state as was before. For instance if i would have text edit field on MainActivity and put some text before going to SecondActivity and then when going back from SecondActivity i want to see exact same form state of MainActivity instead of creating new as seem to be in my current code.</p></li>
  </ol>
  
  <p>My current code:</p>
  
  <pre><code> public class MainActivity : AppCompatActivity
   {
        protected  override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            Plugin.CurrentActivity.CrossCurrentActivity.Current.Init(this, savedInstanceState);
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.activity_main);
  
            var btnOther = FindViewById&lt;Button&gt;(Resource.Id.Other);
            btnOther.Click += BtnOther_Click;
        }
  
        private void BtnOther_Click(object sender, EventArgs e)
        {
           Intent nextActivity = new Intent(this, typeof(SecondActivity));
           StartActivity(nextActivity);
           Finish();
        }
  }
  
  public class SecondActivity : Activity
  {
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            // Create your application here
            SetContentView(Resource.Layout.Second);
  
            var btnBackToExisting1stPage = FindViewById&lt;Button&gt;(Resource.Id.BackToExisting1stPage);
  
            btnBackToExisting1stPage.Click += OnBackPressed;
        }
  
        private void OnBackPressed(object sender, EventArgs e)
        {
            OnBackPressed();
        }
  
        public override void OnBackPressed()
        {
            Toast.MakeText(this, "Back button Pressed", ToastLength.Short).Show();
            base.OnBackPressed();         
            Finish();
        }
  }
  </code></pre>