Code example for CursorLoader

Methods: loadInBackground, setSelection, setSelectionArgs, setSortOrder

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(); 
    } 
 
}