Code example for TabHost

Methods: getCurrentTab

0
		return Fragment.instantiate(mContext, info.clss.getName(), info.args);
	} 
 
	@Override 
	public void onTabChanged(String tabId) {
		int position = mTabHost.getCurrentTab();
		mViewPager.setCurrentItem(position);
	} 
 
	@Override 
	public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
	} 
 
	@Override 
	public void onPageSelected(int position) {
		// Unfortunately when TabHost changes the current tab, it kindly 
		// also takes care of putting focus on it when not in touch mode. 
		// The jerk. 
		// This hack tries to prevent this from pulling focus out of our 
		// ViewPager. 
		TabWidget widget = mTabHost.getTabWidget();