I\'m working on a little program, and I need to add a custom dialog that passes some info to the calling acitivity when it closes. I extended the dialog class, and when I try to
If you are using custom dialog and can't dismiss it, try below code. It worked for me.
new Handler().postDelayed(new Runnable() { @Override public void run() { dialog.dismiss(); } }, 1500);