摘要:
This Handler class should be static or leaks might occur. 大概意思是:Handler类应该定义成静态类,否则可能导致内存泄露。查询资料,比较统一的解决方法如下所示:Handler objects for the same thread all share a common Looper object, which they post messages to and read from.As messages contain targetHandler, as long as there are messages with target
阅读全文