Sample code for Fragments and ViewPager on Android post on rogcg.com