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