I know this is a slightly repeating question. I looked at various questions on SO and several other sites, but could not find a single answer that suits my needs.
Demand
1) I have X, Y coordinates, I want to create a MotionEvent and send it to the highest activity / view.
2) I have to enter it in my application. Therefore, < Inject_Events .. is not required.
3) As long as I have the coordinates, I do not know the activity or view that are in this position. Therefore Activity.dispatchTouchEvent does not work for me. . (view.dispatchTouchEvent will work, but I don't know the view).
4) The toolkit does not help , because they do not have a single method for entering a touch event at x, y.
5) InputManager has a hidden injectInputEvent method, but I donβt know how to access injectInputEvent and compile it?
Any help appreciated!
android touch motionevent
Jailbroken
source share