splash screen not displayig in android
<p>i have two classes as Splash.java and Activity2.java!!i have tried simple code for splash as:</p>

<p>:`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() 
   {</p>

<pre><code> super.run();
 startActivity(new Intent(Splash.this,Trial.class));
 finish();
</code></pre>

<p>}
  };
  thread.start();</p>

<p>}
}`</p>

<p>in my manifest i have given entry also. My code is running without error.Code of R.layout.splash is as:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
</code></pre>

<p>

android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/d"
android:layout_gravity="center"/></p>

<p></p>

<p>Thanks!!</p>
