@Override
    public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {
        // When the given tab is selected, switch to the corresponding page in
        // the ViewPager.
        mViewPager.setCurrentItem(tab.getPosition());
    }
The {@link ViewPager} that will host the section contents.
hellocharts-samples/src/lecho/lib/hellocharts/samples/ViewPagerChartsActivity.java