Why dismissDialog method not working properly?
<p>I am using the showDialog and dismissDialog methods to show progress dialogs in my app. Moved from creating the dialog and calling show() on it to using this in order to save state when changing orientation.</p>

<p>But when I change the orientation from portrait->landscape->portrait, the dismissDialog no longer dismisses the dialog. The dialog stay there all the time and I need to press the back button for it to disappear.</p>

<p>Any reason why it would behave that way?</p>

<p>Thanks</p>
