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
You have created an instance of SubscribedFragment() class
savedListFragment = new SubscribedFragment();
and then you passed the list of this objects into ViewPager Adpater:
FreedomPageAdapter(FragmentManager fm, List listFragment)
which receives List of Fragment type in its constructor. Since the constructor receives List of Fragment type, try to cast each savedListFragment into Fragment before you add it to the list and then pass it to the adpater's constructor:
fragmentList.add((Fragment)savedListFragment);
viewPager.setAdapter(new FreedomPageAdapter(fragmentManager(), fragmentList));