public abstract class FragmentManager implements FragmentResultOwner

Static library support version of the framework's Used to write apps that run on platforms prior to Android 3.0. When running on Android 3.0 or above, this implementation is still used; it does not try to switch to the framework's implementation. See the framework FragmentManager documentation for a class overview.

Your activity must derive from FragmentActivity to use this. From such an activity, you can acquire the FragmentManager by calling getSupportFragmentManager.


Nested types


Representation of an entry on the fragment back stack, as created with FragmentTransaction.addToBackStack().


Callback interface for listening to fragment state changes that happen within a given FragmentManager.


Interface to watch for changes to the back stack.


static final int

Flag for popBackStack and popBackStack: If set, and the name or ID of a back stack entry has been supplied, then all matching entries will be consumed until one that doesn't match is found or the bottom of the stack is reached.

Public constructors

Public methods


Add a FragmentOnAttachListener that should receive a call to onAttachFragment when a new Fragment is attached to this FragmentManager.


Add a new listener for changes to the fragment back stack.

@NonNull FragmentTransaction

Start a series of edit operations on the Fragments associated with this FragmentManager.


Clears the back stack previously saved via saveBackStack.