Actually to do this I implemented it this way:
public class Sniffer extends Activity {
@Override
public boolean dispatchTouchEvent(MotionEvent event) {
float x = event.getAxisValue(MotionEvent.AXIS_X);
float y = event.getAxisValue(MotionEvent.AXIS_Y);
Log.i("t...OUCH: ", x + " " + y);
return super.dispatchTouchEvent(event);
}
}
But I am waiting also to see other (better?) solutions / extensions?