(In the Android user program, there is a special kind of message that is specially used to interact with users. They are touch screen, keyboard and other input things. The touchscreen and keyboard events are uniformly distributed by the system input manager InputManager. In other words, the InputManager is responsible for receiving input events from the hardware, and then distributing the received input events to the active window management. In addition, Input Manager can also receive simulated input events to simulate user contact, click and other events. After the thread running the activated window receives the input events distributed by the InputManager, it will encapsulate them into input messages and then give them to the control that gets the focus at that time for management. This PPT talks about the distribution and management process of Android using programs to input events, mainly involving input management InputManager, input event monitoring thread InputReader, input event distribution thread InputDispatcher, and using the main thread message loop of the program.)