android - Application crashing while video playing on youtube in weview -


i developed application in loading youtube channel in webview , working fine expected. able play videos in small screen full screen mode.

but issue if putting application in background while video playing in full screen mode , and bringing on foreground application crashing. have seen crash log not showing code not getting reason behind crash. showing nullpointerexception came mystery.

logcat :  08-09 14:21:33.480: e/androidruntime(10157): fatal exception: main 08-09 14:21:33.480: e/androidruntime(10157): java.lang.nullpointerexception 08-09 14:21:33.480: e/androidruntime(10157):     @ android.webkit.html5videofullscreen.prepareforfullscreen(html5videofullscreen.java:187) 08-09 14:21:33.480: e/androidruntime(10157):     @ android.webkit.html5videofullscreen.access$600(html5videofullscreen.java:24) 08-09 14:21:33.480: e/androidruntime(10157):     @ android.webkit.html5videofullscreen$2.surfacecreated(html5videofullscreen.java:124) 08-09 14:21:33.480: e/androidruntime(10157):     @ android.view.surfaceview.updatewindow(surfaceview.java:609) 08-09 14:21:33.480: e/androidruntime(10157):     @ android.view.surfaceview.onwindowvisibilitychanged(surfaceview.java:235) 08-09 14:21:33.480: e/androidruntime(10157):     @ android.view.view.dispatchwindowvisibilitychanged(view.java:7678) 08-09 14:21:33.480: e/androidruntime(10157):     @ android.view.viewgroup.dispatchwindowvisibilitychanged(viewgroup.java:1047) 08-09 14:21:33.480: e/androidruntime(10157):     @ android.view.viewgroup.dispatchwindowvisibilitychanged(viewgroup.java:1047) 08-09 14:21:33.480: e/androidruntime(10157):     @ android.view.viewgroup.dispatchwindowvisibilitychanged(viewgroup.java:1047) 08-09 14:21:33.480: e/androidruntime(10157):     @ android.view.viewgroup.dispatchwindowvisibilitychanged(viewgroup.java:1047) 08-09 14:21:33.480: e/androidruntime(10157):     @ android.view.viewgroup.dispatchwindowvisibilitychanged(viewgroup.java:1047) 08-09 14:21:33.480: e/androidruntime(10157):     @ android.view.viewgroup.dispatchwindowvisibilitychanged(viewgroup.java:1047) 08-09 14:21:33.480: e/androidruntime(10157):     @ android.view.viewgroup.dispatchwindowvisibilitychanged(viewgroup.java:1047) 08-09 14:21:33.480: e/androidruntime(10157):     @ android.view.viewgroup.dispatchwindowvisibilitychanged(viewgroup.java:1047) 08-09 14:21:33.480: e/androidruntime(10157):     @ android.view.viewgroup.dispatchwindowvisibilitychanged(viewgroup.java:1047) 08-09 14:21:33.480: e/androidruntime(10157):     @ android.view.viewgroup.dispatchwindowvisibilitychanged(viewgroup.java:1047) 08-09 14:21:33.480: e/androidruntime(10157):     @ android.view.viewgroup.dispatchwindowvisibilitychanged(viewgroup.java:1047) 08-09 14:21:33.480: e/androidruntime(10157):     @ android.view.viewgroup.dispatchwindowvisibilitychanged(viewgroup.java:1047) 08-09 14:21:33.480: e/androidruntime(10157):     @ android.view.viewgroup.dispatchwindowvisibilitychanged(viewgroup.java:1047) 08-09 14:21:33.480: e/androidruntime(10157):     @ android.view.viewgroup.dispatchwindowvisibilitychanged(viewgroup.java:1047) 08-09 14:21:33.480: e/androidruntime(10157):     @ android.view.viewgroup.dispatchwindowvisibilitychanged(viewgroup.java:1047) 08-09 14:21:33.480: e/androidruntime(10157):     @ android.view.viewrootimpl.performtraversals(viewrootimpl.java:1335) 08-09 14:21:33.480: e/androidruntime(10157):     @ android.view.viewrootimpl.dotraversal(viewrootimpl.java:1112) 08-09 14:21:33.480: e/androidruntime(10157):     @ android.view.viewrootimpl$traversalrunnable.run(viewrootimpl.java:4472) 08-09 14:21:33.480: e/androidruntime(10157):     @ android.view.choreographer$callbackrecord.run(choreographer.java:725) 08-09 14:21:33.480: e/androidruntime(10157):     @ android.view.choreographer.docallbacks(choreographer.java:555) 08-09 14:21:33.480: e/androidruntime(10157):     @ android.view.choreographer.doframe(choreographer.java:525) 08-09 14:21:33.480: e/androidruntime(10157):     @ android.view.choreographer$framedisplayeventreceiver.run(choreographer.java:711) 08-09 14:21:33.480: e/androidruntime(10157):     @ android.os.handler.handlecallback(handler.java:615) 08-09 14:21:33.480: e/androidruntime(10157):     @ android.os.handler.dispatchmessage(handler.java:92) 08-09 14:21:33.480: e/androidruntime(10157):     @ android.os.looper.loop(looper.java:137) 08-09 14:21:33.480: e/androidruntime(10157):     @ android.app.activitythread.main(activitythread.java:4898) 08-09 14:21:33.480: e/androidruntime(10157):     @ java.lang.reflect.method.invokenative(native method) 08-09 14:21:33.480: e/androidruntime(10157):     @ java.lang.reflect.method.invoke(method.java:511) 08-09 14:21:33.480: e/androidruntime(10157):     @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:1006) 08-09 14:21:33.480: e/androidruntime(10157):     @ com.android.internal.os.zygoteinit.main(zygoteinit.java:773) 08-09 14:21:33.480: e/androidruntime(10157):     @ dalvik.system.nativestart.main(native method) 

application not crashing if putting application in background while video playing in small screen only.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -