title: Disabling back button C# Android Xamarin Code Not Responding
body: <p>So im trying to disable the back button in my app and it seems like the code im using doesnt want to respond, its hard to explain in words so I made a gif so you can see it more clearly and understand because im not sure I will be able to explain in words.</p>
  
  <p>I want to disable the back button in "Activity2" but the codes I've been trying doesnt want to respond to the back button
  <a href="https://i.stack.imgur.com/aKglo.gif" rel="noreferrer"><img src="https://i.stack.imgur.com/aKglo.gif" alt="Here is the GIF"></a></p>
  
  <p>Ive tried these codes, dont know any more solutions since im new to android development.</p>
  
  <p>First attempt<br></p>
  
  <pre><code>public override void OnBackPressed ()
      {
      base.OnBackPressed ();
      }
  </code></pre>
  
  <p>Second attempt (Both did the same thing)</p>
  
  <pre><code>public override void OnBackPressed ()
      {
         //  base.OnBackPressed ();            /*  Comment this base call to avoid calling Finish()  */
         //  Do nothing
      }
  </code></pre>
  
  <p>What could the possible issue be here?</p>