I also met this issue when launch a new activity to cover a webview. Can anyone helps?
On 6月29日, 下午10时13分, GJTorikian <gjtorik...@gmail.com> wrote: > Howdy-- > > I'm getting crash reports from my app out in the wild. Problem is, I > don't know what's causing it. The only place I'm using WebKit is when > constructing an -in-app help browser. Here's the full stack trace: > > java.lang.NullPointerException > at android.webkit.WebView.onWindowFocusChanged(WebView.java:4177) > at android.view.View.dispatchWindowFocusChanged(View.java:3788) > at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java: > 658) > at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java: > 662) > at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java: > 662) > at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java: > 662) > at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java: > 662) > at android.view.ViewRoot.handleMessage(ViewRoot.java:1921) > at android.os.Handler.dispatchMessage(Handler.java:99) > at android.os.Looper.loop(Looper.java:123) > at android.app.ActivityThread.main(ActivityThread.java:4627) > at java.lang.reflect.Method.invokeNative(Native Method) > at java.lang.reflect.Method.invoke(Method.java:521) > at com.android.internal.os.ZygoteInit > $MethodAndArgsCaller.run(ZygoteInit.java:868) > at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) > at dalvik.system.NativeStart.main(Native Method) > > The help browser window takes the full screen, with a bar at the > bottom for "help" and "done" buttons. The only way I can conceive of > the help window losing focus is if someone clicks outside of the bar, > or the screen dims. Will catching and throwing the NPE be sufficient > for eliminating this error, or do I need to add some further metadata > in the Android Manifest XML? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en