In my activity, I call a MyDialog (custom dialog) in onCreate() and handle its DismissListener in Activity to find if its cancelled or not. If its cancelled, I finish the ac
To stop your dialog causing any memory leaks, ensure the following is included in your activity;
AlertDialog _alert; @Override public void onPause() { super.onPause(); if(_alert != null) _alert.dismiss(); }