In my MainActivity, I overrode the OnBackPressed() method like that
public override void OnBackPressed()
{
Toast toast = Toast.MakeText(this, "Press again to exit", ToastLength.Short);
toast.SetMargin(0,0.20f);
toast.Show();
}
When the user is in MainActivity and clicks the back button once, on-screen appears the message "Press again to exit" this message disappears after few seconds. If the user clicks back button again when this message is on screen I want the application to exit but when the message has disappeared and the user clicks back button I want the message to appear again. I've seen some examples doing that in Java, but I find it hard to adapt these examples to work on Xamarin.Android.