In Android, Handler classes should be static or leaks might occur, Messages enqueued on the application thread's MessageQueue also retain their target Handler. If the Handler is an inner class, its outer class will be retained as well. To avoid leaki…
在项目中遇到WindowManager: Activity has leaked window问题,其实在stackoverflow.com可以找到详细答案:http://stackoverflow.com/questions/2850573/activity-has-leaked-window-that-was-originally-added. 最佳答案:You're trying to show a Dialog after you've exited an Activity. 原因分析…