Skip to content Skip to sidebar Skip to footer

Code Within OnTouchEvent's ACTION_DOWN MotionEvent Throws Exception When I Call The Event

attempting to make an android game with a surface view that accepts touch events. it works perfectly until i actually touch the screen and the code within MotionEvent.ACTION_DOWN

Solution 1:

pntTouch is not initialize by you, try this:

 private Point pntTouch = new Point();

Kudos to Hashir Sheikh!


Post a Comment for "Code Within OnTouchEvent's ACTION_DOWN MotionEvent Throws Exception When I Call The Event"