title: Show activities in ActionBarSherlock Tab Navigation
body: <p>I am developing an app using <a href="http://actionbarsherlock.com/samples.html" rel="nofollow">ActionBarSherlock</a> , using "Tab Navigation"
  I have activities which I need to call when user touches any tab. Since I need to use these tabs, so these activities should show the tabs as well. How to achieve the same?</p>
  
  <p>Below is the code snippet:</p>
  
  <pre><code>public class MainActivity extends SherlockActivity implements ActionBar.TabListener {
  private TextView mSelected;
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
      setTheme(SampleList.THEME); //Used for theme switching in samples
      super.onCreate(savedInstanceState);
  
      setContentView(R.layout.tab_navigation);
      mSelected = (TextView)findViewById(R.id.text);
  
      getSupportActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
  
          ActionBar.Tab tabNW_I = getSupportActionBar().newTab();
          tabNW_I.setText("Network Information");
          tabNW_I.setTabListener(this);
          getSupportActionBar().addTab(tabNW_I);
  
          ActionBar.Tab tabNW_T = getSupportActionBar().newTab();            
          tabNW_T.setText("TroubleShoot N/W");
          tabNW_T.setTabListener(this);
          getSupportActionBar().addTab(tabNW_T);
  
  
  
  
  }
  </code></pre>