Code example for CursorAdapter

Methods: getCount

0
        } 
    } 
 
    @Override 
    public int getCount() { 
        return super.getCount() - mRemovedCursorPositions.size();
    } 
 
    public int getCursorPosition(int position) {
        return mListMapping.get(position, position);
    } 
 
    public ArrayList<Integer> getCursorPositions() {
        ArrayList<Integer> result = new ArrayList<Integer>();
 
        for (int i = 0; i < getCount(); ++i) {
            result.add(mListMapping.get(i, i));
        } 
 
        return result;