摘要: Handler作为Activity的内部类有可能会导致内存泄露的问题。具体如何解决,在国外有人提出,如下:Issue: Ensures that Handler classes do not hold on to a reference to an outer classIn Android, Handler classes should be static or leaks might occur. Messages enqueued on the application thread's MessageQueue also retain their target Handler. 阅读全文
posted @ 2014-03-11 10:11 微笑yy520 阅读(259) 评论(0) 推荐(0) 编辑