I have a ViewPager within a ViewPager and I am getting this exception
09-07 18:30:26.392: ERROR/AndroidRuntime(841): FATAL EXCEPTION: main
java.lang.Ille
New version of Support Library v4 (or Android 4.2, ofcourse) resolve this problem much simply. For do this, simply do constructor of your custom FragmentPagerAdapter like this:
public CustomFragmentPagerAdapter(android.support.v4.app.Fragment fragment)
{
super(fragment.getChildFragmentManager());
// write your code here
}
This work because new Android version approve using nested Fragments