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