Code example for SparseIntArray

0
    public static final int REMOVED = -1;
 
    /** 
     * Key is ListView position, value is Cursor position 
     */ 
    private SparseIntArray mListMapping = new SparseIntArray();
 
    private ArrayList<Integer> mRemovedCursorPositions = new ArrayList<Integer>();
     
    public DragSortCursorAdapter(Context context, Cursor c) {
        super(context, c);
    } 
 
    public DragSortCursorAdapter(Context context, Cursor c, boolean autoRequery) {
        super(context, c, autoRequery);
    } 
 
    public DragSortCursorAdapter(Context context, Cursor c, int flags) {
        super(context, c, flags);
    }