Code example for TabHost

Methods: getCurrentTab

0
		} 
 
		@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