Which mechanism is used to report android virtual buttons ?, Android buttons

Source: Internet
Author: User
Tags home screen

Which mechanism is used to report android virtual buttons ?, Android buttons
1. In normal mode, the tp button is reported in the coordinate form of input_event like other touch events. During initialization, the coordinates of the virtual keys are written in/sys/board_properties/virtualkeys. mtk-tpd according to the configuration information defined in the tpd_custom_XXX.h file by using the tpd_button_setting () function. During work, the tp driver will report the coordinates of the pressed points. The Android upper layer will read the key configuration information in sys, and then judge whether the reported coordinates belong to the coordinate range of a certain key, in this way, the coordinate information is converted into a specific key value.
 
2. In factory mode and recovery mode, because Android has not yet started, the reporting mechanism in step 1 cannot be adopted for key events. Instead, the tpd_button () function is used to directly report keys.
 
Therefore, for normal mode, you do not need to call the tpd_button () function to report key events. In factory mode and recovery mode, you must call the tpd_button () function to report the virtual key events.
What are the mobile phones in the android system that use virtual buttons to occupy the screen? Details

Haha, Android fragmentation has been serious since 1.6 ....

How many virtual buttons can be hidden in Android 40?

Generally, Android 4.0 and later systems have three virtual buttons: The Return key, the home screen key, and the recently used key. The usage of these three keys is quite high, basically, the mobile phone cannot be used normally, so I advise the landlord not to hide these keys.

Related Article

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.