title: Android Closing tab in tabHost
body: <p>I am developing chat application using android. Programmatically now I am able to add no of tab as per necessary. But problem is that I am unable to close a single tab. <code>tabhost.clearAllTabs</code> closes all tabs. I want to close particular tab when another user left chat window. 
  Is it possible using tabhost? though there is no direct way to close tab is there any indirect way to close tab?</p>
  
  <p>Thank you.</p>
  
  <p>Update:</p>
  
  <pre><code>TabHost tabHost;
  public class TActivity extends TabActivity {
  
      tabHost = getTabHost();                 
  }
  
  public void addTAb(){
  
          TabSpec tabSpec = tabHost.newTabSpec("counter:"+counter);    
  
          View tab = LayoutInflater.from(getTabHost().getContext()).inflate(R.layout.tab, null);              
          tabSpec.setIndicator(tab);          
          Intent tabIntent = new Intent(this, Foo.class);
          tabSpec.setContent(tabIntent);  
  
          tabHost.addTab(tabSpec);        
  
          tabHost.setCurrentTabByTag(--);
          tabCounter = tabCounter +1;
  }
  </code></pre>