Code example for FilterQueryProvider

Methods: runQuery

0
    } 
 
    @Override 
    public Cursor runQueryOnBackgroundThread(CharSequence constraint) {
        if (mFilterQueryProvider != null) {
            return mFilterQueryProvider.runQuery(constraint);
        } 
 
        return mCursor;
    } 
 
    @Override 
    public Filter getFilter() {
        if (mCursorFilter == null) {
            mCursorFilter = new CursorFilter(this);
        } 
        return mCursorFilter;
    } 
 
    public FilterQueryProvider getFilterQueryProvider() {
        return mFilterQueryProvider;