Code example for DialogInterface.OnCancelListener

Methods: onCancel

0
    @Override 
    public void onCancel(DialogInterface dialog) {
        super.onCancel(dialog);
 
        if (mOnCancelListener != null) {
            mOnCancelListener.onCancel(dialog);
        } 
    } 
 
    public static class ProgressDialogFragmentBuilder { 
 
        private FragmentActivity mActivity;
        private String mMessage = null;
        private OnCancelListener mOnCancelListener = null;
        private boolean mCancelable = true;
 
        public ProgressDialogFragmentBuilder(FragmentActivity activity) {
            mActivity = activity;
        } 
 
        public ProgressDialogFragmentBuilder setMessage(int resId) {