Skip to content

Commit

Permalink
Update 常见内存泄露解决办法.md
Browse files Browse the repository at this point in the history
  • Loading branch information
SiberiaDante authored Aug 28, 2017
1 parent 06fd0d2 commit 470329a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion collection/常见内存泄露解决办法.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,11 @@ public class SingleTon{
private final MyHandler mHandler = new MyHandler(this);
```
常见问题

参考文章:【Android 性能优化】—— 详解内存优化的来龙去脉:http://blog.csdn.net/qq_23191031/article/details/63685756
1.非静态内部类,匿名内部类:内部类静态化,内部类里面的资源及时关闭不要静态化
2.Android WebView常见问题及解决方案汇总:http://www.cnblogs.com/olartan/p/5713013.html
3.静态方法不能持有context


参考文章:【Android 性能优化】—— 详解内存优化的来龙去脉:http://blog.csdn.net/qq_23191031/article/details/63685756

0 comments on commit 470329a

Please sign in to comment.