title: Dismiss dialog after screen orientation change
body: <p>1) I launch a background task (via AsyncTask)</p>
  
  <pre><code>new FindJourneyTask().execute(); // FindJourneyTask extends AsyncTask
  </code></pre>
  
  <p>2) Still in the main thread (just before new thread is launched) I create a dialog with showDialog(dialogId)</p>
  
  <pre><code>// this method is in FindJourneyTask
  protected void onPreExecute() {
      showDialog(DIALOG_FINDING_JOURNEY);
  }
  </code></pre>
  
  <p>3) Screen orientation changes and the Activity is recreated</p>
  
  <p>4) How can I now dismiss the dialog from the FindJourneyTask? Calling dismissDialog(dialogId) does nothing.</p>
  
  <pre><code>// this method is in FindJourneyTask
  protected void onPostExecute(FindJourneyResult result) {
      dismissDialog(DIALOG_FINDING_JOURNEY); // does nothing
  }
  </code></pre>