Control the app interface to respond to user actions by communicating with the app (Android or IOS):
1 Android Phone: Use motionevent in Activity to simulate click action.
2 IOS Phone: Click the Send Touch or move event (not differentiated on Android phone), after the APP is recognized, in the current interface for processing, the process is to traverse the control at the current interface, and then manually invoke the current control to execute the function.
If the sent data contains a move event, the App side handles the recognition as a sliding event and does not trigger the response of the Click event.
The above is the control of the APP's own interface, if you want to control other interfaces on the phone, such as the system interface, or other application interface, you must use the HID.
On the Android phone, if you do not use HID to control the other interface, you will report the error of permissions;
On an IOS phone, if you don't use HID to control other interfaces, the phone doesn't respond.
Simulate the difference between touch-screen clicks on Android and IOS phones