is there any way to get the getChildFragmentManager() method to work on devices pre-API level 17? If so, how?
Use the backport of fragments from the Android Support package (android-support-v4.jar
, android.support.v4.app.Fragment
).
The method does not seem to be included in either the v4 or v13 support libraries.
Yes, it is, on FragmentActivity
, the Activity
base class you need to use in order to use the fragments backport.
It is on the Fragment
class from the backport, for managing child fragments of that fragment.
I have tried clean builds with both v4 and v13 support libraries, but that does not seem to solve the issue.
Either you did not change to the FragmentActivity
Fragment
backport, or your support library JARs are old. Here is a sample project demonstrating the use of the FragmentActivity
Fragment
backport and its getChildFragmentManager()
.