Code example for CursorAdapter

Methods: changeCursor

0
        return old;
    } 
 
    @Override 
    public void changeCursor(Cursor cursor) {
        super.changeCursor(cursor);
        resetMappings(); 
    } 
 
    public void reset() { 
        resetMappings(); 
        notifyDataSetChanged();
    } 
 
    private void resetMappings() { 
        mListMapping.clear();
        mRemovedCursorPositions.clear();
    } 
 
    @Override 
    public Object getItem(int position) {