...
myCursorAdapter.setFilterQueryProvider(new FilterQueryProvider()
{
public Cursor runQuery(CharSequence constraint)
{
// Search for states whose names begin with the specified letters.
Cursor cursor = dbHelper.getMatchingStates((constraint != null ? constraint.toString() : null));
return cursor;
}
});
...