According to the official documentation, an Adapter
should not be in charge of filtering the data :
An Adapter object acts as a bridge between an AdapterView and the underlying data for that view. The Adapter provides access to the data items. The Adapter is also responsible for making a View for each item in the data set.
You have to filter your data before putting them in your Cursor
, then the Adapter
will render the needed view to be display the data inside the ListView