Is there a simple way to obtain the x,y coordinate whenever someone touches the screen while my app is running? Just looking to store them in some integers.
A:
Override onTouchEvent(MotionEvent event)
and then call event.getX()
and event.getY()
to get the coordinate positions of where the user touched [they will be floats].
antonyt
2010-09-03 16:51:38
thanks! This worked well!
tylercomp
2010-09-03 17:11:25