package com.android.test;
import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.widget.TabHost;

public class main1 extends TabActivity{
 static TabHost mTabHost = null;
 
    @Override
    public void onCreate(Bundle savedInstanceState)  { 
        super.onCreate(savedInstanceState); 
        mTabHost = getTabHost();
        
        LayoutInflater.from(this).inflate(R.layout.main, mTabHost.getTabContentView(), true);
        
        mTabHost.addTab(mTabHost.newTabSpec("tab1").setIndicator("Test1" ,getResources().getDrawable(R.drawable.icon1)).setContent(new Intent(this, test1.class)));
        mTabHost.addTab(mTabHost.newTabSpec("tab2").setIndicator("Test2",getResources().getDrawable(R.drawable.icon1)).setContent(new Intent(this, test2.class)));
        mTabHost.addTab(mTabHost.newTabSpec("tab3").setIndicator("Test3",getResources().getDrawable(R.drawable.icon1)).setContent(new Intent(this, test3.class))); 
        mTabHost.addTab(mTabHost.newTabSpec("tab4").setIndicator("Test4",getResources().getDrawable(R.drawable.icon1)).setContent(new Intent(this, test4.class)));
        mTabHost.addTab(mTabHost.newTabSpec("tab5").setIndicator("Test5",getResources().getDrawable(R.drawable.icon1)).setContent(new Intent(this, test5.class)));
    }
}


TabActivity 에 관하여 질문이 있는데요...
구글링을 해서 뒤져도 영어로된 외국사이트에도 시원한 답변이 있는곳이 없어서 질문 드립니다 ㅠㅠ

위에 올린 소스와 마찬가지로 여러 액티비티를 화면에 띄워주는건 성공했는데요

그 액티비티 안에서
Intent i = new Intent(this, abc.class);
startActivity(i);

이걸 하면 자꾸 위에 탭이 사라진채로 abc 클래스가 화면 전체를 잡아먹어 버리네요...
저걸 없애려면 main2 를 똑같이 탭 액티비티를 한개더 만들어서
인텐트 이동하는 식으로 노가다를 해야하는건가요 ㅠ

아시는분 있으면 꼭 답변 부탁드립니다아아아