Android: TabListener, Swipe and tab fragments

view story

http://stackoverflow.com – I'm stuck with this problem. I'm trying to insert the swipe between the various fragments of my app. The swipe itself works perfectly but the problem, and I do not understand why, is that the actions that I have defined in various fragments are not recognized by the various toggle / buttons etc. In other words it just swipe between the various layouts. Here is my code (removed the unnecessary portion) public class MainActivity extends FragmentActivity implements ActionBar.TabListener { CollectionPagerAdapter mCollectionPagerAdapter; ViewPager mViewPager; public void onCreate (HowTos)