Webview building up the memory in Android
In my hybrid Android application, o开发者_运维百科n a ListView item click I'm loading a WebView by passing the WebView activity with the url to display in it. The user can come back to the earlier view by clicking back button.
But what is happening is after clicking on 3-4 ListView items, the app is becoming slow, which I think is because WebView activity is loaded again and again without deallocating it.
In the onDestroy() of the webview activity destroy the WebView as well. myWebView.destroy();
加载中,请稍侯......
精彩评论