title: Calling "showDialog" from "onResume" throws runtime exception
body: <p>I have the main activity which launches a "loading screen" activity. When the "loading screen" finishes, I need to show a kind of a splash-screen, and naturally I chose Dialog class to do so. But when I call for <code>showDialog</code> from <code>onResume</code> the application fails even though I understand from all the related posts that this is the proper way to do it.</p>
  
  <p>Can anyone point me to the right direction?</p>
  
  <p>Here's a code sample, if it helps:  </p>
  
  <pre><code>    @Override
      protected Dialog onCreateDialog(int id) {
          switch (id) {
          case DIALOG_SPLASH:
              promo = new PromoSplashScreen(getAppContext(), R.style.NoFrameNoBorderBoTitle);
              promo.setCancelable(false);
              promo.setImage(ApplicationData.config.splashImageURL);
              return promo;
          default:
              return super.onCreateDialog(id);
          }
      }
      @Override
      protected void onResume() {
          super.onResume();
          if (ApplicationData.config == null) return;
          if (ApplicationData.config.splashEnabled &amp;&amp; !ApplicationData.config.splashPlayed &amp;&amp; ApplicationData.config.splashImageURL != "") {
              // Play splash screen
              ApplicationData.config.splashPlayed = true;
              showDialog(DIALOG_SPLASH);
          }
      }
  </code></pre>