Kodum Şu şekilde :
public class AnaSayfa extends TabActivity {
private TabHost tab;
boolean isLock=true;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.ana_sayfa);
Resources res = getResources();
tab=getTabHost();
TabHost.TabSpec spec=tab.newTabSpec("mitab1");
spec.setIndicator("sSs",
res.getDrawable(android.R.drawable.ic_btn_speak_now));
Intent sssIntent = new Intent(this, Mesajlar.class);
spec.setContent(sssIntent);
tab.addTab(spec);
------------------------ana_sayfa.xml---------------------------
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fillViewport="true"
android:gravity="center_horizontal" >
<LinearLayout android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TabWidget android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
></TabWidget>
<FrameLayout android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
</FrameLayout>
</LinearLayout>
</TabHost>
---------Mesajlar activity-----
public class Mesajlar extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
TextView tx=new TextView(this);
tx.setText("gool");
setContentView(tx);
}