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