Hi, I have the issue that when a user moves away from my activity and comes back later I lost the position in my cursor.
In onPause() cursor.getPostion() returns something >= 0, in onResume() cursor.getPosition() returns -1. When skipping startManagingCursor() [1] it works as expected. How do I work around this? Maybe the information gets lost during deactivate()? Do I have to manage the position myself then? How would I do that? The API says that I cannot rely in onSaveInstanceState/onRestoreInstanceState being called at all or so I believe to understand it. So I would write the position to a file myself in onPause() and restore it from the file in onResume() and then delete the file? Btw. at least during superficial tests onRestoreInstanceState was never called. Cheers, Mariano [1] http://developer.android.com/reference/android/app/Activity.html#startManagingCursor(android.database.Cursor) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

