Sample of code used in my posts at http://devdev.mobi

ViewPager and Tabs without Fragments:
 http://devdev.mobi/tabs-e-viewpager/