开发者

WebView crashing after some time

开发者 https://www.devze.com 2023-01-18 19:43 出处:网络
In my Android game I am loading websites in WebView by calling webViewRowA.loadUrl(www.website.com) and after some time (random) the device crashes with the following traceback.

In my Android game I am loading websites in WebView by calling webViewRowA.loadUrl(www.website.com) and after some time (random) the device crashes with the following traceback.

java.lang.NullPointerException
at android.webkit.BrowserFrame.getRequestInterceptor(BrowserFrame.java:1108)
at android.webkit.FrameLoader.handleRequestIntercept(FrameLoader.java:426)
at android.webkit.FrameLoader.handleHTTPLoad(FrameLoader.java:226)
at android.webkit.WebViewWorker.handleMessage(WebViewWorker.java:124)
at android.os.Handler.dispa开发者_Python百科tchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:143)
at android.os.HandlerThread.run(HandlerThread.java:60


Have you mentioned uses-permission entry in AndroidManifest.xml file?

<uses-permission android:name="android.permission.INTERNET"></uses-permission>

This is essential if your application wants to access the internet connection.


No answer from me, but I'll second the fact that I have been seeing this the last few days as well (also, happens randomly). However, I am only seeing this happen on 2.2 devices. Perhaps a bug in Froyo? Need to do some more digging.

Star the issue. Looks like a bug in Froyo: http://code.google.com/p/android/issues/detail?id=11533

0

精彩评论

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