Code example for DialogInterface.OnDismissListener

Methods: onDismiss

0
    } 
 
    @Override 
    public void onDismiss(DialogInterface dialog) {
        if (mDismissListener != null) {
            mDismissListener.onDismiss(dialog);
        } 
        super.onDismiss(dialog);
    } 
 
    public static class EditTextDialogFragment extends AlertDialogFragment { 
        public static final String TAG = "EditTextDialogFragment";
        public static final String DEFAULT_STRING = "defaultString";
        public static final int ERROR = -1;
        private EditText mEditText;
        private EditTextDoneListener mEditTextDoneListener;
 
        public interface EditTextDoneListener { 
            void onClick(String text);
        }