Hi all,
on android i have big listview which has to support filtering. For now my implementation is the following.
EditText and TextWatcher to listen for text changes. All data is stored in db and when there is event for TextChange fetch a cursor and set new CursorAdapter to the listview. I use AsyncTask to query the db and to update the gui.
But there comes some problems with this approach:
AsyncTask is started for every TextChange event.
The AsyncTask should be synchronized
So what is the best way to implement search field for a listview which elements are stored in db.