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

            Current = this;
        }