(The Android application is the same as the traditional PC application, which is message driven. In other words, in the main thread of Android application, all functions are performed in a message loop. Android uses other threads of the program, which can also have a message loop like the main thread. The main thread of Android application is a special thread, because it is also the UI thread and the input event management thread such as touch screen and keyboard. The main thread is very sensitive to the message loop. Once it is blocked, it will affect the flow of the UI, and even cause an ANR problem. This PPT talks about the principle of message loop of Android application thread, mainly involving Handler and Looper, and summarizes three thread usage models according to different usage scenarios of message loop. Mastering the message management mechanism of Android application will help us skillfully use synchronous and asynchronous programming and improve the running performance of the program)