Code example for SparseArray

Methods: append

0
        MotionEvent.PointerCoords c = new MotionEvent.PointerCoords();
        c.x = x;
        c.y = y;
        c.pressure = pressure;
        c.size = size;
        mPointers.append(id, c);
        return this;
    } 
 
    public MonkeyMotionEvent setIntermediateNote(boolean b) {
        mIntermediateNote = b;
        return this;
    } 
 
    public boolean getIntermediateNote() { 
        return mIntermediateNote;
    } 
 
    public int getAction() { 
        return mAction;