set the dismiss listener to be called when the dialog is ended . there , use getwhichevents to see how the dialog was dismissed ; if it returns -1 , the dialog was canceled out . if it is not -1 , it 's the index of which events the user wants to respond to . concode_field_sep Activity mParent concode_elem_sep int mWhichEvents concode_elem_sep boolean mClickedOk concode_elem_sep DialogInterface.OnClickListener mListListener concode_elem_sep DialogInterface.OnDismissListener mDismissListener concode_elem_sep AlertDialog mAlertDialog concode_elem_sep DialogInterface.OnClickListener mDialogListener concode_field_sep void setOnClickListener concode_elem_sep void onClick concode_elem_sep void onClick concode_elem_sep void onDismiss concode_elem_sep void showDialog concode_elem_sep int getWhichEvents concode_elem_sep boolean getClickedOk concode_elem_sep void setClickedOk concode_elem_sep void dismissAlertDialog concode_elem_sep void setWhichEvents
void function ( OnDismissListener arg0 ) { mDismissListener = arg0 ; }