title: setCurrentTab of a tabHost
body: <p>I'm asking if we can call a setCurrentTab on a tabhost from another class than the class that contains the tabhost and tabspecs?</p>
  
  <p>Can we put</p>
  
  <pre><code>tabHost.setCurrentTab(1);
  </code></pre>
  
  <p>in another class than this one : </p>
  
  <pre><code>public class Main extends TabActivity{
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      Log.v("", "Welcome in Main");
      setContentView(R.layout.tab);
  
      TabHost tabHost = (TabHost)findViewById(android.R.id.tabhost);  // Le TabHost a des Tabs
  
      TabSpec firstTabSpec = tabHost.newTabSpec("tid1");  // TabSpec: new tab - TabSpec : setContent to the tab
      firstTabSpec.setIndicator("Informations", getResources().getDrawable(R.drawable.database)).setContent(new Intent(this,FirstTab.class));
      tabHost.addTab(firstTabSpec);
  
      TabSpec secondTabSpec = tabHost.newTabSpec("tid1");
      secondTabSpec.setIndicator("Graphiques", getResources().getDrawable(R.drawable.chart)).setContent(new Intent(this,SecondTab.class));
      tabHost.addTab(secondTabSpec);
  
      TabSpec thirdTabSpec = tabHost.newTabSpec("tid1");  // tid1 is firstTabSpec Id (used to access outside)
      thirdTabSpec.setIndicator("Réglages", getResources().getDrawable(R.drawable.settings)).setContent(new Intent(this,ThirdTab.class));
      tabHost.addTab(thirdTabSpec);
  }
  
  }
  </code></pre>
  
  <p>Can we make it a static var? how Can we achieve this?</p>
  
  <p>Thanks for your attention!</p>