Hi i am getting this error while using a pageViwer and Adapter to slide across 3 fragments.
here is my pageAdapter
public class FreedomPageAdapter ex
The following method should return one fragment for each tab:
@Override
public Fragment getItem(int position) {
//Add some code
//to verify that it will not return null
return listFragment.get(position);
}
The code is fine, but make sure that the listFragment contains three different Fragment's, and the fragment is not null.