Code example for TabHost.TabSpec

Methods: setContent, setIndicator

0
    	Intent intent = null;
    	if(tag=="Teams")
    		intent = new Intent(getApplicationContext(),TeamActivity.class);
    	if(tag=="Events")
    		intent = new Intent(getApplicationContext(),EventActivity.class);
    	spec.setContent(intent);
    	spec.setIndicator(tag);
    	 
    	return spec;
    	 
    } 
     
    public static TabHost getTabHost() {
    	return tabhost;
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java