When I had experienced this problem it was because I had a check like
if(savedInstance == null{
do...
}
in both my fragment and main activity. This was stopping my fragment from being reattached. So I removed the check in my fragment activity. I also manually controlled rotation through the code below (allowing me to support two fragments in landscape and one in portrait
@Override
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE){
if (Orientation.equals("L")){return;}
setContentView(R.layout.activity_land);
Orientation = "L";
}
else if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT){
if (Orientation.equals("P")){return;}
setContentView(R.layout.activity_main);
Orientation = "P";
}
}
Along with "android:configChanges="orientation".
Though this may not be the solution to your problem, more code would be helpful.