/// <summary> /// Confirm exit from app /// </summary> public override void OnBackPressed() { new AlertDialog.Builder(this).SetMessage("Close application?").SetPositiveButton("Yes", (s, e) => { BackButton.FireBackButtonCall(); Process.KillProcess(Process.MyPid()); }).SetNegativeButton("No", (s, e) => { }).Show(); }
public BackButton() { //мега костыль =) Current = this; }