Code example for AlertDialog

Methods: dismiss, isShowing

0
        mDialogAlreadyDismissed = false;
        mDialog.show();
    } 
 
    boolean isDialogShowing() { 
        return mDialog != null && mDialog.isShowing();
    } 
 
    void dismissDialog() { 
        if (isDialogShowing()) mDialog.dismiss();
    } 
 
    private class DateListener implements OnDateSetListener {
        private final int mDialogType;
 
        DateListener(int dialogType) {
            mDialogType = dialogType;
        } 
 
        @Override 
        public void onDateSet(DatePicker view, int year, int month, int monthDay) {