I tried this example
I build for API Level 15 and use support package as well.
This funktion causes trouble:
@Override
public Fragment getItem(int position) {
return ArrayListFragment.newInstance(position);
}
Error Message:
The return type is incompatible with FragmentPagerAdapter.getItem(int)
I found a similar problem but with no clear solution to me
Cannot convert from android.support.v4.app.Fragment to android.app.Fragment
there is an support.v13 available, use this. v4 is too old for API 15