Code example for CursorLoader

Methods: loadInBackgroundsetSelectionsetSelectionArgssetSortOrder

0
    } 
 
    @Override 
    public Cursor loadInBackground() {
        // Build the where cause (which can't be done on the UI thread.) 
        setSelection(mSelector.getSelection(mContext));
        setSelectionArgs(mSelector.getSelectionArgs());
        setSortOrder(mSelector.getSortOrder());
        // Then do a query to get the cursor 
        return super.loadInBackground(); 
    } 
 
} 
Contextual code suggestions in your IDE  Get Codota for Java