Filtering a cursor the right way?

Viewed 10726

At the moment I need to filter a Cursor/CursorAdapter to only show rows that match a specific condition in the ListView. I don't want to requery the db all the time. I just want to filter the Cursor I got from querying the DB.

I have seen the question: Filter rows from Cursor so they don't show up in ListView

But I don't understand how to do the filtering by overwritting the "move" methods in my CursorWrapper. An example would be nice.

Thank you very much.

3 Answers
Related