title: Thread doesnt show xml
body: <p>I'm trying to make a loading screen for my app, in MainActivity i have a thread called timer that starts next activity after 5 sec, but for some reason it doesn't show xml... when thread is not started xml is shown normally but as soon as i start thread screen is blank. Thread works, it changes activity but my "logo.xml" isn't shown.</p>
  
  <p>public class MainActivity extends ActionBarActivity {</p>
  
  <pre><code>Thread timer;
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.logo);
  
       timer = new Thread(){
          public void run()
          {
              try{
  
                  int ltimer =0;
                  while(ltimer&lt;5000){
                      sleep(100);
                      ltimer += 100;
                  }
                  startActivity(new Intent("com.JMS.sinktheship.MENU"));
  
              } catch (InterruptedException e) {
                  // TODO Auto-generated catch block
                  e.printStackTrace();
              }
              finally
              {
                  finish();
              }
          }
      };
  
  timer.run();    
  }
  </code></pre>