Ask a question about Android message mechanism.

after reading some articles on Android message mechanism, I would like to ask, since a thread maintains a message queue, and it is constantly looping, is there not only developer-defined Message, in the message queue of the main thread of Android application, but also Message generated by UI refresh and touch? Is it just that the Handler objects that deal with them are different? If so, the main thread has too many message queues. Can the handler associated with it handle it?

Apr.07,2021

CPU can't handle it? You worry too much. Windows, Mac, Android and iOS are all this mode of UI main thread + worker thread

Looper / Handler / Message find out about Baidu yourself (Google if you can)

Menu