Code example for TabHost

Methods: getCurrentTab

        return view == object;
    public void onTabChanged(String tabId) {
        int position = mTabHost.getCurrentTab();
    public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
    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.