i have a animation runing on my activity, a logo that is rotating....
i call function onBackPressed() that show alert dialogBox "are you sure you want to exit ?" there are two buttons "Yes" or "No"
.....i want my activity pause so that the logo donot rotate while dialog box is open...
here's my code
public override void OnBackPressed()
{
AlertDialog.Builder exit = new AlertDialog.Builder(this);
exit.SetMessage("Are you sure You want to Exit");
exit.SetCancelable(false);
exit.SetPositiveButton("yes", (object sender, DialogClickEventArgs e) =>
{
this.Finish();
});
exit.SetNegativeButton("No", (object sender, DialogClickEventArgs e) =>
{
});
exit.Show();}