Java tutorial
//package com.java2s; import android.view.MotionEvent; public class Main { private static MotionEvent.PointerCoords[] getPointerCoords(final MotionEvent motionEvent) { final int pointerCount = motionEvent.getPointerCount(); final MotionEvent.PointerCoords[] array = new MotionEvent.PointerCoords[pointerCount]; for (int i = 0; i < pointerCount; ++i) { motionEvent.getPointerCoords(i, array[i] = new MotionEvent.PointerCoords()); } return array; } }