On Thu, Jul 8, 2010 at 3:14 PM, Connick <[email protected]> wrote:
> My user has a menu option to jump from a list activity to a preference
> screen which has options for filtering and/or sorting visible data in the
> aforementioned list activity. When the user hits the back button, inside
> onResume() I am calling cursor.managedQuery() with the new sort/filter
> params.

There is no managedQuery() method on a Cursor, AFAIK.

> The only workaround I've found so far is to
> re-create the adapter onResume ...which obviously isn't the best approach as
> I lose scroll position etc.

If I change sort or filter conditions, as a user I would expect to be
taken to the top of the list, since the previous scroll position is
meaningless.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

-- 
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

Reply via email to