title: Can you fire an event when Android Dialog is dismissed?
body: <p>Say I have a created a dialog in my Android app like so:</p>
  
  <pre><code>private static ProgressDialog dialog;
  dialog = ProgressDialog.show(MainActivity.this, "", "Downloading Files. Please wait...", true);
  </code></pre>
  
  <p>Now, is it possible to fire an event when the following is called?</p>
  
  <pre><code>dialog.dismiss();
  </code></pre>
  
  <p>The reason I want to do this and not just call my method after <code>dialog.dismiss();</code> is because the Dialog dismiss is called within a static class and the next thing I want to do is load a new Activity (which cannot be done using Intents within a static class).</p>