Code example for TabHost

Methods: setCurrentTabByTag

        //, 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)) {
	//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;
Contextual code suggestions in your IDE  Get Codota for Java