I\'m doing my first Android app, and wanted to get straight into the ICS API. I have so far created an app using an ActionBar, with swipeable tabs using Viewpager and Fragme
look here:fragmentTransaction.add(R.id.main_container, new HomeFragment());
you add the fragment ,but follow,you use replace() method ,so you should use replace instead of add()