preface

The Handler mechanism has always been a common question in the interview. If you want to understand the Handler mechanism thoroughly, you still need to spend a lot of time. But in order to prepare for the interview, so I want to summarize all the possible points of the Handler mechanism. One is to summarize their own copy, but to share reference.

  • Android Handler ThreadLocal

  • Handler, MessageQueue, Looper

  • Android Handler: Sending and retrieving Messages

  • Android Handler: Message and Message Recycling

  • SimplePool and SynchronizedPool extensions to the Android Handler Mechanism

  • The Exit of the Android Handler Loop Message Queue

  • Android Handler Leaks

  • The Android Handler mechanism implements its own message queue (this article will be updated after the Java concurrency series is completed).

The last

I hope you can thoroughly understand the Handler mechanism through this series of articles. Because bloggers have limited ability, it is inevitable that some knowledge points will not be explained clearly. If you find mistakes or omissions, I hope you can point them out to me. Thank you very much