I\'m developing an Android application targeting 2.x and 3.0 devices and thus I\'m using the compatibilty API. I\'m testing on Android 2.0.
I\'m trying to replace a
For reference reasons: We were able to solve a very similar problem by adding an android:id
to our fragment created in XML.
This very important precondition for supporting crash-free rotation is only mentioned as a side-note in the documentation:
Note: Each fragment requires a unique identifier that the system can use to restore the fragment if the activity is restarted (and which you can use to capture the fragment to perform transactions, such as remove it).