Code example for SparseArray

Methods: remove

0
    } 
 
    @Override 
    public void destroyItem(ViewGroup aContainer, int aPosition, Object aObject)
    { 
        mPageReferenceMap.remove(aPosition);
        super.destroyItem(aContainer, aPosition, aObject);
    } 
 
    public TaskFragment getFragment(int aPosition)
    { 
        return mPageReferenceMap.get(aPosition);
    } 
 
    public ArrayList<Task> getData()
    { 
        return mData;
    } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE