开发者

WebView onPause method. Memory leak.

开发者 https://www.devze.com 2023-02-09 19:22 出处:网络
On my app I have a webview that loads a webpage which contains an online broadcast. The problem is that once I exit the app it seems to keep getting data since my free memory continues to decrease. It

On my app I have a webview that loads a webpage which contains an online broadcast. The problem is that once I exit the app it seems to keep getting data since my free memory continues to decrease. It comes back to normal on开发者_Go百科ly if I close the app manually.

I have found this topic here as well:

How do I pause Flash content in an Android WebView when my activity isn't visible?

I also had the problem described there: my flash content kept working even if the app wasn't on the screen (I could hear it). Now it's fixed with the code shown there, but as I said, it keeps draining memory anyway.

0

精彩评论

暂无评论...
验证码 换一张
取 消