Code example for Loader

Methods: getId

0
        } 
    } 
 
    @Override 
    public void onLoaderReset(Loader<Cursor> cursorLoader) {
        if (cursorLoader.getId() == ADAPTER_GENERAL_ID) {
            setGroupCursor(null);
        } else { 
            try { 
                setChildrenCursor(cursorLoader.getId(), null);
            } catch (Throwable ex) {
                // Nothing to do in this case. 
            } 
        } 
    } 
 
    @Override 
    protected Cursor getChildrenCursor(Cursor groupCursor) {
        // This will calls when collapsed group expands. 
        int groupPosition = groupCursor.getPosition();
        int columnIndex = groupCursor.getColumnIndex(GlobalProvider.ROSTER_GROUP_NAME);