The illustration



The image project address can be copied and modified

ThreadLocal definition: Different threads do not interact and use a single variable. ThreadLocal: explains why prepare() and loop() are called by default when creating an Activity, so you don’t need to do it.

Source code analysis:

Handler, Looper, Message, and MessageQueue are the muggle brothers of Android thread communication. How do they work? Let’s do a college-level analysis based on the main source code. The original link

Reference&Thanks:

Anangryant.leanote.com/post/Handle…