Fragments on orientation changed

view story

http://stackoverflow.com – I'm developing an application with too many fragments and my application supports orientation changed. I have different fragments for different orientations. After changing orientation from portrait to landscape and then landscape to portrait again, what happens to hidden fragments on portrait? I cant access them after coming back to portrait. String fragmentNameToRemove = collection.iterator().current(); String fragmentNameToShow = collection.iterator().prev(); Fragment fragmentToShow = fragmentManager.findFragmentByTag(fragmentNameToShow); FragmentTransaction ft = fragmentManager.beginTrans (HowTos)