Java tutorial
//package com.java2s; //License from project: Open Source License import android.util.Log; import android.view.MotionEvent; public class Main { private static final String TAG = "Utils"; public static void inspectEvent(MotionEvent e) { if (e == null) return; final int pointerCount = e.getPointerCount(); Log.d(TAG, "Input: event time: " + e.getEventTime()); for (int p = 0; p < pointerCount; p++) { Log.d(TAG, "Input: pointer:" + e.getPointerId(p) + " x:" + e.getX(p) + " y:" + e.getY(p) + " action:" + e.getAction()); } } }