public void OnClick(IDialogInterface dialog, int which) { Activity activity = mParent.Activity; if (activity != null) { activity.Finish(); } } }