I have a list activity with a cursor adapter. Cursor is retrieved by managedQuery() method. The docs say that the cursor returned by this method is managed by activity life cycle: it's deactivated when activity is stopped, and is requeried when activity restarts. So I expect that once an activity is created list view will maintain its state (scroll position) when this activity goes background and then returns. Because in such case activity is paused and then resumed (e.g. after pressing a HOME button and returning) but NOT stopped and restarted. So the cursor shouldn't be requeried and the scroll position of a list view shouldn't be changed. But I see the list to be scrolled to the top position each time I'm pausing the activity and then resuming... I'm sure the setListAdapter() method is called on activity creation only. That's why I tried to obtain a cursor by getContentResolver().query() instead of managedQuery() and the list has begun to maintain its state. So what's wrong with managedQuery() or my minds?
-- Best regards, Roman Mazur Tech Lead at Stanfy (http://stanfy.com.ua) Skype: roman.mazur.f LinkedIn: http://ua.linkedin.com/in/romanmazur Twitter: http://twitter.com/roman_mazur -- 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

