When I call popBackStack
like:
manager.popBackStack("mybackstack", FragmentManager.POP_BACK_STACK_INCLUSIVE);
will the memory stored by fragments belonging to "mybackstack" be freed?
I have a FragmentActivity
that manages a ListFragment
. Each time I click on an item, FragmentActivity
creates a new Fragment
that shows some information about the item that was clicked, and then shows a DialogFragment
with a bitmap (which I recycle when the dialog is rejected). I put android:configChanges="orientation"
in the manifest and override onConfigurationChanged
as needed.
source share