http://stackoverflow.com/questions/3130654/memory-leak-in-webview
I conclude from above comments and further tests, that the problem is a bug in the SDK: when creating a WebView via XML layout, the activity is passed as the context for the WebView, not the application context. When finishing the activity, the WebView still keeps references to the activity, therefore the activity doesn't get removed from the memory. I filed a bug report for that , see the link in the comment above. webView = new WebView(getApplicationContext()); share | edit | answered Jun 28 '10 at 12:56 Mathias Lin 11.8k 4 42 84 | |
| |
- 代码中设置drawableleft
- android 3.0 隐藏 系统标题栏
- Android开发中activity切换动画的实现
- Android(安卓)学习 笔记_05. 文件下载
- Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
- 技术博客汇总
- android 2.3 wifi (一)
- AndRoid Notification的清空和修改
- Android中的Chronometer
随机推荐
-
Android(Java):Android的状态栏通知(Noti
-
Funambol android eclipse上的配置及说明
-
android 、java优质资料合集
-
Android(安卓)4.0的图形硬件加速及绘制技
-
解决Android Studio Gradle DSL method n
-
Android访问WebService
-
Android开发之SlidingDrawer(一)
-
使用Android提供的模拟任意地理位置,报jav
-
Android 中文 API (34) —— RadioGroup
-
appwidget-provider