I want to use a function where I can get the x and y co-ordinates of a user (if he/she is currently touching the screen) every 20 milliseconds or similar. I know there timers and schedulers in Android. But the question is how do I get X and y co-ordinates without using OnTouch event listener.
Or how can I make sure that the OnTouch is called every 20 milliseconds either with the current point being touched by the user or empty if the user is not touching the screen at that instance.
The time is an important factor. I did check threads, but not sure if I can use timers or schedulers.