title: Android: The splash screen does not get shown, why?
body: <p>I am working on learning Android.  From the documents I have read so far I can't figure out how to get the splash View to show (during the sleep the screen stays blank).  It appears I need to start a new activity for the main layout, but this seems wasteful (the splash should be forever gone, I'd like to reuse its thread).</p>
  
  <pre><code>import android.app.Activity;
  import android.os.Bundle;
  import android.util.Log;
  
  public class Ext3 extends Activity {
  
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.splash);
  
          Log.v("Ext3", "starting to sleep");
  
          try {
              Thread.sleep (5000);
          } catch (InterruptedException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }
  
          Log.v("Ext3", "done sleeping");
  
          setContentView (R.layout.main);
      }
  
  }
  </code></pre>