title: How to get access to the TabHost from activity, that is't one of the tabs?
body: <p>I have TabActivity <strong>MainTab</strong> and all my Activities extend <strong>BasicActivity</strong>. In <strong>BasicActivity</strong> I made same menu for all Activities. </p>
  
  <p>How to get access to the TabHost from <strong>BasicActivity</strong> on item menu click when Activity is't one of the tabs? </p>
  
  <p>Now I am using TabHost tabHost = (TabHost) getParent().findViewById(android.R.id.tabhost);
  BUT it will work only when activity is one of the tab.</p>
  
  <pre><code>public class BasicActivity extends FragmentActivity {   
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
      getMenuInflater().inflate(R.menu.m_main, menu);
      return true;
  }
   @Override
   public boolean onOptionsItemSelected(MenuItem item) {
     switch (item.getItemId()){
       case R.id.stad:
         TabHost tabHost = (TabHost) getParent().findViewById(android.R.id.tabhost);
         tabHost.setCurrentTab(4);
       break;
       default:
          return false;      
     }
     return true;
   }
  }
  </code></pre>