title: How to display tabbar in whole app in android?
body: <p>Hi I am creating an application. In this I need to display a TabBar in all Activities. I set the TabBar bottom using 4 tabs; <code>home, contact, about and call us</code>.<br>
  Inside home tab I have some buttons. When I click inside home any button that time I need to move some other Activity. Using intent I moved to another Activity but here the TabBar was not displayed. However, I need to display the same TabBar in all Activities. If any one knows how to do this, please suggest a solution to me.     </p>
  
  <pre><code>       DefenceLaywer.java:
          public class DefenceLaywer extends TabActivity {
  
        TabHost tabhost;
          @Override
          public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
          tabhost = (TabHost)findViewById(android.R.id.tabhost);
          TabSpec firstTabSpec = tabhost.newTabSpec("Home");
          TabSpec secondTabSpec = tabhost.newTabSpec("Claimonline");
           TabSpec thirdTabSpec = tabhost.newTabSpec("CallUs");
           TabSpec fourthTabSpec = tabhost.newTabSpec("AboutUs");
  
  //        TabSpec thirdTabSpec = tabhost.newTabSpec("Interactive");
           firstTabSpec.setIndicator("Home", getResources().getDrawable(R.drawable.home));
           secondTabSpec.setIndicator("ContactUs", getResources().getDrawable(R.drawable.contactus));
          thirdTabSpec.setIndicator("CallUs", getResources().getDrawable(R.drawable.callus));
         fourthTabSpec.setIndicator("AboutUs", getResources().getDrawable(R.drawable.aboutus));
  
  
  
          firstTabSpec.setContent(new Intent(this,HomeTab.class));
          secondTabSpec.setContent(new Intent(this,ContactUs.class));
          thirdTabSpec.setContent(new Intent(this,CallUs.class));
          fourthTabSpec.setContent(new Intent(this,AboutUs.class));
  
  
  
  
                  tabhost.addTab(firstTabSpec);
                  tabhost.addTab(secondTabSpec);
                  tabhost.addTab(thirdTabSpec);
                  tabhost.addTab(fourthTabSpec);       
             }
         }       
  </code></pre>