definir a parte inferior da barra de ferramentas no android todas as atividades

Eu desenvolvi uma aplicação android.

Aqui eu tenho que definir o fundo da barra de ferramentas em todas as atividades android.how posso fazer. Por favor me dê solução para estes.

eu tenho totalmente 10 atividades significa que o tabbar é mostrar no botton em todas as 10 atividades.how posso fazer no android.please me ajudar.

Esta é minha primeira atividade:

   setContentView(R.layout.tabbar);
    TabHost tabHost = getTabHost();
    TabHost.TabSpec spec;
    Intent intent;

    TabSpec dbspec = tabHost.newTabSpec("Home");

    dbspec.setIndicator("Home", getResources().getDrawable(R.drawable.home));
    Intent dbIntent = new Intent(this, MainActivity.class);
    dbspec.setContent(dbIntent);
    tabHost.addTab(dbspec);

    TabSpec orderspec = tabHost.newTabSpec("Cart");
    orderspec.setIndicator("Cart", getResources().getDrawable(R.drawable.cart));
    Intent orderIntent = new Intent(this, ViewCartActivity.class);
    orderspec.setContent(orderIntent);
    tabHost.addTab(orderspec);
    TabSpec settingspec = tabHost.newTabSpec("My Account");
    settingspec.setIndicator("My Account", getResources().getDrawable(R.drawable.myaccount));
    Intent settingIntent = new Intent(this, CustomerLogin.class);
    settingspec.setContent(settingIntent);
    tabHost.addTab(settingspec);

tabbar.xml:

<?xml version="1.0" encoding="utf-8"?>
 <TabHost
   android:id="@android:id/tabhost"
   android:layout_width="match_parent"
   android:layout_height="match_parent"
    xmlns:android="http://schemas.android.com/apk/res/android">

       <RelativeLayout
    android:layout_width="match_parent"
    android:id="@+id/linearLayout1"
    android:layout_height="match_parent">

           <TabWidget
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@android:id/tabs"
        android:layout_alignParentBottom="true">
          </TabWidget>

    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:id="@android:id/tabcontent">
    </FrameLayout>
    </RelativeLayout>
     </TabHost>

Na primeira aba tem que executar MainActivity (GridView) activity.it é woked well.in atividade principal eu tenho que clik qualquer item significa que é ir para subcate (listview) activity.Here também eu tenho que exibir barra de guia na parte inferior.how posso conjunto.

No arquivo subcate.xml incluímos abaixo o código:

<include        
 android:id="@+id/footer"

    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"
    layout="@layout/tabbar" />

mas o tabbar não é display.whats errado aqui.por favor me ajude.

questionAnswers(2)

yourAnswerToTheQuestion