splash 로 로딩화면 표시 후.. 페이지로 넘어가는데 ,, 아래 소스 보시면 아시겠지만,


splash 이미지 표시 후, main 으로 넘어갑니다.


main 은 위쪽에 탭4개가 있습니다.


하지만, 폰에서 테스트 할 경우, splash 로 로딩화면 표시 후, main 넘어가서, 탭이 나오지 않습니다.


아시는 분 답변 부탁드려요.


-------------------------

SplashActivity.java 소스

 package com.splashview;
import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
public class SplashActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState); 
        setContentView(R.layout.splash);
        
        Handler handler = new Handler () {
         @Override
         public void handleMessage(Message msg) {
          finish();
         }
        };
        
        handler.sendEmptyMessageDelayed(0, 3000);
    }
}


-------------------

SplashView.java 소스


 package com.splashview;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
public class SplashView extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        // Splash(로딩화면) 띄우기
        startActivity(new Intent(this, SplashActivity.class));
        
        // do_something();
    }
}


-----------

main.xml 소스


 <?xml version="1.0" encoding="utf-8"?> 
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"> 
   
   <TextView android:id="@+id/opt_mycar"       
android:layout_width="wrap_content"     
android:layout_height="wrap_content"    
android:text="내자동차" /> 
 
  
    <TextView android:id="@+id/opt_oil"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="주유" />  
  
    <TextView android:id="@+id/opt_maintenance"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="정비" />  
  
    <TextView android:id="@+id/opt_report"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="리포트" /> 
</FrameLayout> 


----------

splash.xml 소스

 <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:orientation="vertical"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"
     > 
 <ImageView
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"
     android:src="@drawable/splash"
     android:scaleType="fitXY"
     />
</LinearLayout>


--------------

AndroidManifest.xml 소스


 <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.splashview"
      android:versionCode="1"
      android:versionName="1.0">
    <uses-sdk android:minSdkVersion="10" />
    <application android:icon="@drawable/icon" android:label="@string/app_name">
        <activity android:name=".SplashView"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
		<activity android:name=".SplashActivity"
				android:screenOrientation="portrait"
				android:configChanges="orientation|keyboardHidden"
				android:theme="@android:style/Theme.NoTitleBar"
				/>
<activity android:name="SplashActivity"/>
    </application>
</manifest>

이상 입니다.