When I touch once (MotionEvent.Action_Down) it gives me accurate and all X & Y Coordinates, but when I touch and move my finger (MotionEvent.Action_Move) then it’s giving some touched coordinates.
For Example
I am dragging my finger on y axis of 10 to 150 and it’s accurate I am moving my finger on this axis but it’s giving me
10 13 15 19 20 25 26 28 29 31
I’m getting all these by event.getY() in my Logcat see the diff. 1st 10 then 13 but i moved my finger on 11,12 also and its not giving coordinates of that all my code is in ontouchevent
Can anybody Help me ??
I think it’s just something you’ll have to live with, perhaps you can generate a best fit line that goes through most of your points and use that?
The touchscreen controller is not infinitely fast and it can’t capture every single pixel that your finger slides across, it just has to sample the screen every so often.
Can you say what you need to use this data for?