Splashscreen in android not working
<p>I am using the code for splash screen for the android app for which the code was posted on stack overflow. I am unable to get the output. Here is the code. </p>

<pre><code>package com.splash;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
public class SplashScreen extends Activity {

        private static final int SPLASH_DISPLAY_TIME = 3000;

        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.splash);

            new Handler().postDelayed(new Runnable() {

                public void run() {

                    Intent mainIntent = new Intent(Splashscreen.this,
                            MainActivity.class);
                    Splashscreen.this.startActivity(mainIntent);

                    Splashscreen.this.finish();
                    overridePendingTransition(R.anim.mainfadein,
                            R.anim.splashfadeout);
                }
            }, SPLASH_DISPLAY_TIME);
        }
    }
}
</code></pre>

<p>Here is the splash.xml file ;</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"&gt;
&lt;ImageView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:src="@drawable/splash" /&gt;
&lt;/LinearLayout&gt;
</code></pre>

<p>please tell me how to resolve it. I also have fadein and fadeout xml files for the splash screen image.</p>
