Simulate the difference between touch-screen clicks on Android and IOS phones

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.