Code example for SparseIntArray

Methods: clear

     * @param cursor the new cursor to use as the data set 
    public void setCursor(Cursor cursor) {
        mDataCursor = cursor;
     * Performs a binary search or cache lookup to find the first row that 
     * matches a given section's starting letter. 
     * @param sectionIndex the section to search for 
     * @return the row index of the first occurrence, or the nearest next letter. 
     *         For instance, if searching for "T" and no "T" is found, then the first 
     *         row starting with "U" or any higher letter is returned.  
     *         If there is no data following "T" at all, then the list size is returned. 
    public int getPositionForSection(int sectionIndex) {