Please check out this issue: http://code.google.com/p/android/issues/detail?id=20791
The project (https://github.com/kaciula/BugRetain) uses CursorLoader to get two values from the database through the content provider and display them on the screen. The scenario is this: from activity A, go to activity B, switch once to orientation and return to activity A. Values from db are no longer displayed.
Can someone provide a workaround for this problem? The problem does not occur only with CursorLoader, but with any bootloader. As a consequence of this error, I cannot write an application with fragments that use setRetainInstance and are available in both orientations. I really need a workaround until the guys from Android fix the problem. Any ideas?
source share