i had created a splash screen and added an image to it, but when i run this in emulator the image is not getting displayed
<p>i had created a splash screen and added an image to it, but when i run this in emulator the image is not getting displayed, my .xml code is this</p>

<pre><code>enter code here&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
 &gt;

&lt;TextView
    android:id="@+id/textView1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_centerHorizontal="true"
    android:layout_centerVertical="true"
    tools:context=".SplashScreenActivity" /&gt;

&lt;ProgressBar
    android:id="@+id/progressBar1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_above="@+id/textView1"
    android:layout_toLeftOf="@+id/textView1" /&gt;

&lt;ImageView android:id="@+id/imageLoading1"
    android:layout_height="wrap_content"
    android:layout_width="match_parent"
    android:visibility="visible"
    android:src="@drawable/splash"/&gt;
</code></pre>

<p></p>

<p>and the .java code is this</p>

<pre><code> Thread splashTread = new Thread() {
            @Override
            public void run() {
                try {
                    int waited = 0;
                    boolean active = false;
                    while(active &amp;&amp; (waited &lt; 300)) {
                        sleep(100);
                        if(active) {
                            waited += 100;
                        }
                    }
                } catch(InterruptedException e) {
                    // do nothing
                } finally {
                    startActivity(new Intent(SplashScreenActivity.this,MainActivity.class));
                    finish();
                    //startActivity(new Intent("com.splash.com.MyApps"));
                    //startActivity( new Intent(getApplicationContext(), Myapps.class));
                }
            }
        };
        splashTread.start();
    }
</code></pre>

<p>please can anybody tell where i have gone wrong??</p>
