error when trans from layout to other layout in android
<p>I want to change the black color during the short period when my app is launching but the content isn't displayed, yet.</p>

<p>this black color appears when trans from <code>splash.xml</code> to <code>activity_main.xml</code>, its take few min and open my App.</p>

<p>My StartPoint.java class is :-</p>

<pre><code>public class StartPoint extends Activity{

ProgressBar progressBar;
private int progressBarStatus = 0;

@Override
protected void onCreate(Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    super.onCreate(savedInstanceState);
    setContentView(R.layout.splash);

    progressBar = (ProgressBar)findViewById(R.id.progressBar1);


    Thread timer = new Thread(){
        public void run(){
            try{
                sleep(5000);
                while(progressBarStatus &lt; 5000){
                    StartPoint.this.runOnUiThread(new Runnable(){
                        public void run()
                        {
                            progressBar.setProgress(progressBarStatus);
                            progressBarStatus += 1000;
                        }
                    });

                }
            }catch(InterruptedException e){
                e.printStackTrace();
            }finally{
                Intent openMainList = new Intent(StartPoint.this, com.example.kam.MainActivity.class);
                startActivity(openMainList);
            }
        }
    };
    timer.start();
}

}
</code></pre>

<p>and my splash.xml is :-</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="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" &gt;

&lt;ImageView
    android:id="@+id/imageView1"
    android:layout_width="wrap_content"
    android:layout_height="match_parent"
    android:src="@drawable/loading" /&gt;

&lt;ProgressBar
    android:id="@+id/progressBar1"
    style="?android:attr/progressBarStyleHorizontal"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_weight="1.67" /&gt;

&lt;/LinearLayout&gt;
</code></pre>

<p>and activity_main.xml code is :-</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;RelativeLayout 
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/screen" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:background="@drawable/bg"&gt;

    &lt;LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_alignParentLeft="true"
        android:layout_alignParentTop="true"
        android:orientation="vertical"
         &gt;

        &lt;LinearLayout
            android:layout_weight="6" 
            android:orientation="vertical" 
            android:layout_alignParentTop="true" 
            android:layout_alignParentLeft="true" 
            android:layout_width="fill_parent" 
            android:layout_height="0dip" &gt;

        &lt;/LinearLayout&gt;

        &lt;LinearLayout
            android:id="@+id/buttons"
            android:layout_width="match_parent"
            android:layout_height="0dip"
            android:layout_alignParentLeft="true"
            android:layout_weight="0.62"
            android:background="@drawable/iconbgrepate"
            android:gravity="center"
            android:orientation="horizontal"
            android:tileMode="repeat"
            android:weightSum="5" 
            android:alpha=".75"&gt;

        &lt;SeekBar
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:id="@+id/volumebar"
            android:max="100"
            android:paddingBottom="10dip"/&gt;

        &lt;/LinearLayout&gt;

        &lt;LinearLayout
            android:id="@+id/buttons"
            android:layout_width="match_parent"
            android:layout_height="0dip"
            android:layout_alignParentLeft="true"
            android:layout_weight="0.62"
            android:background="@drawable/iconbgrepate"
            android:gravity="center"
            android:orientation="horizontal"
            android:tileMode="repeat"
            android:weightSum="5" &gt;

           &lt;Button
               android:id="@+id/btnRefresh"
               android:layout_width="32dp"
               android:layout_height="match_parent"
               android:layout_margin="5dp"
               android:layout_weight="0.10"
               android:background="@drawable/refreshbutton" /&gt;

           &lt;View android:layout_weight="1" 
               android:layout_width="0dip" 
               android:layout_height="0dip" /&gt;

            &lt;Button
                android:id="@+id/btnPause"
                android:layout_width="32dp"
                android:layout_height="match_parent"
                android:layout_margin="5dp"
                android:layout_weight="0.05"
                android:background="@drawable/pausebutton" /&gt;

            &lt;View android:layout_weight="1" 
                android:layout_width="0dip" 
                android:layout_height="0dip" /&gt;

            &lt;Button
                android:id="@+id/btnPlay"
                android:layout_width="32dp"
                android:layout_height="match_parent"
                android:layout_margin="5dp"
                android:layout_weight="0.05"
                android:background="@drawable/playbutton" /&gt;

            &lt;View android:layout_weight="1" 
                android:layout_width="0dip" 
                android:layout_height="0dip" /&gt;

            &lt;Button
                android:id="@+id/btnExit"
                android:layout_width="32dp"
                android:layout_height="match_parent"
                android:layout_margin="5dp"
                android:layout_weight="0.12"
                android:background="@drawable/exitbutton" /&gt;

        &lt;/LinearLayout&gt;
    &lt;/LinearLayout&gt;
&lt;/RelativeLayout&gt;
</code></pre>

<p>and mainfest.xml is :-</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.kam"
    android:versionCode="1"
    android:versionName="1.0" &gt;
    &lt;uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="17" /&gt;
    &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
    &lt;application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" &gt;
        &lt;activity
            android:name="com.example.kam.StartPoint"
            android:label="@string/app_name" &gt;
            &lt;intent-filter&gt;
                &lt;action android:name="android.intent.action.MAIN" /&gt;
                &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
            &lt;/intent-filter&gt;
        &lt;/activity&gt;
        &lt;activity
            android:name="com.example.kam.MainActivity"/&gt;
    &lt;/application&gt;
&lt;/manifest&gt;
</code></pre>

<p>where my problem ??</p>
