Code example for TabHost

Methods: setCurrentTabByTag

0
        //......so, use Extras Bundle and (potentially) expect a String named 'targetTabTag' 
        Bundle incomingIntentExtrasBundle = this.getIntent().getExtras();
        if(incomingIntentExtrasBundle != null) {
	        String targetTabTag = incomingIntentExtrasBundle.getString("targetTabTag");
	        if(targetTabTag != null && !"".equals(targetTabTag)) {
	        	mTabHost.setCurrentTabByTag(targetTabTag);
	        } 
        } 
	} 
	 
	//make sure to customise this method as per your implementation's needs when extending this class 
	public abstract void setupTabs(); 
	 
	public TabHost getTabHost() {
		return mTabHost;
	} 
	 
	public BetterTabManager getBetterTabManager() { 
		return mBetterTabManager;
	}