Code example for TabHost

Methods: getCurrentTabTag

0
    } 
 
    @Override 
    protected void onSaveInstanceState(Bundle outState) {
        // Save and restore the selected tab for rotations/restarts. 
        outState.putString("tab", mTabHost.getCurrentTabTag());
    } 
 
    @Override 
    protected void onRestoreInstanceState(Bundle savedInstanceState) {
        if (savedInstanceState != null) {
            mTabHost.setCurrentTabByTag(savedInstanceState.getString("tab"));
        } 
    } 
 
    /** 
     * Backwards-compatibility mumbo jumbo 
     */ 
    static class DummyTabFactory implements TabHost.TabContentFactory {
 
Stop searching for code, let great code find you!  Add Codota to your java IDE