Android: How to implement Action Bar on Tabhost
<p>here is my code for the tabhost in my java class</p>

<pre><code>TabHost tabHost = getTabHost();
TabHost.TabSpec sp;
Intent in;

in = new Intent().setClass(Main.this, ScheduleActivity.class);
sp = tabHost.newTabSpec("Tab1").setIndicator("Schedule").setContent(in);
tabHost.addTab(sp);

in = new Intent().setClass(Main.this, PatientActivity.class);
sp = tabHost.newTabSpec("Tab2").setIndicator("Patient").setContent(in);
tabHost.addTab(sp);

in = new Intent().setClass(Main.this, ContactActivity.class);
sp = tabHost.newTabSpec("Tab3").setIndicator("Contact").setContent(in);
tabHost.addTab(sp);

tabHost.setCurrentTab(0);
</code></pre>

<p>and i wanted to implement the action bar that hides the tabs when a tab is selected, Here is the picture my tab activity, i have 3 tabs wherein every time i click a tab and goes to an activity.. it hides that 3 tabs</p>

<p><img src="http://i.stack.imgur.com/XHdHf.png" alt="enter image description here"></p>
