Process of Message Processing in Android 4.0

Source: Internet
Author: User

Recently, I want to intercept the touch screen message, which can always be used for related operations. However, the current Android system does not provide support for these events. Therefore, I tried to solve the problem by Wei Jie Zhao.

I have already written an article to describe the message-related knowledge. The general process of message processing has been clearly stated, including the process of obtaining and processing the message from generation to generation. After all, some special messages must be processed.

In essence, the input message is processed in a special way and then distributed to the corresponding place to make the correct action.

In a real system, how do we process messages? In Android, we perform different processing for two different sources: Touch Screen and buttons. There are two different processing methods for button messages: one is to distribute messages directly to the customer window through the pipeline, and the other is to distribute messages to WMS first, if WMS does not process the message, the message is sent to the customer window. Otherwise, the message is not sent to the customer window.

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: 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.