how to close a dialog in android code example Example: close dialog android if (dialog.isShowing) { dialog.dismiss() }