title: splash screen not displayig in android
body: <p>I have two classes as Splash.java and Activity2.java!! I have tried simple code for splash as:</p>
  
  <pre><code>public class Splash extends Activity 
  {
      @Override
      public void onCreate(Bundle savedInstanceState) 
      {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.splash);
          Thread thread= new Thread()
          {
              @Override
              public void run() 
              {
  
                      super.run();
                      startActivity(new Intent(Splash.this,Trial.class));
                      finish();
  
              }
          };
          thread.start();
  
      }
  }
  </code></pre>
  
  <p>In my manifest I have given entry also. My code is running without error. Code of <code>R.layout.splash</code> is as:</p>
  
  <pre><code>  &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="vertical"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:gravity="center_horizontal"
      &gt;
  &lt;ImageView  
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:src="@drawable/d"
  android:layout_gravity="center"/&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Thanks!!</p>