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