How do I click on randomly assigned x and y coordinates on Android? Sorry for my English
Asked
Active
Viewed 35 times
-3
-
3Possible duplicate of [How to get the Touch position in android?](https://stackoverflow.com/questions/3476779/how-to-get-the-touch-position-in-android) – Luca Nicoletti Apr 16 '19 at 13:43
1 Answers
0
yes, you can use
val event = MotionEvent.obtain(downTime, eventTime, action, x, y, metaState);
view.dispatchTouchEvent(event)

Antonis Radz
- 3,036
- 1
- 16
- 34