Real approach for Avoiding Re-creation of Fragment after Screen Rotate (Official Fragment Developer Guide as example)
i'm finding a Real approach for Avoiding Re-creation of Fragment after Screen Rotate if (container == null) { return null; } is not really avoiding the Fragment to be re-created at all. (illustrated below) Where is the Official Fragment Developer Guide? The official guide we are concerning is at http://developer.android.com/guide/components/fragments.html . The partial example code is at the bottom of the guide. As far as i know, the full sample code is available in the "Samples for SDK" under Android 3.0 (API 11). Also, i have done minimal modification to the sample code for it to run in API