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. The query is executing (with expected sorted results) but the
ListView isn't updating. If I force onCreate to fire by rotating the device,
the list updates appropriately. 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.

I've attempted notify change manually to no avail. (as well as requery - but
the problem isn't data retrieval) I'm sure I'm missing something obvious. :\

Stace

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