I\'m trying to do something I do with activities, but within a fragment. What I do is using activities:
First stop the activity restarts when rotating the device
a
I could do it by re-attaching the fragment within onConfigurationChanged:
@Override
public void onConfigurationChanged(Configuration newConfig)
{
getActivity().detachFragment(this);
super.onConfigurationChanged(newConfig);
....
getActivity().attachFragment(this);
}
Remember that by detaching and attaching your fragment you will be only working with its view. But the fragment state is "saved" in the Fragment manager.