Android.view.WindowManager $ BadTokenException

I have a strange problem. I received this Crashlyitics report from Crashlyitics . This does not seem to show any line of my activity code. Therefore, I did not know when this error occurred. Please someone have an idea when this exception occurred. Any possible scenario?

 android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running? at android.view.ViewRootImpl.setView(ViewRootImpl.java:692) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:345) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:224) at android.view.WindowManagerImpl$CompatModeWrapper.addView(WindowManagerImpl.java:149) at android.view.Window$LocalWindowManager.addView(Window.java:556) at android.widget.MediaController.show(MediaController.java:338) at android.webkit.HTML5VideoFullScreen.showControllerInFullScreen(HTML5VideoFullScreen.java:386) at android.webkit.HTML5VideoViewProxy$VideoPlayer.end(HTML5VideoViewProxy.java:311) at android.webkit.HTML5VideoViewProxy.handleMessage(HTML5VideoViewProxy.java:432) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4895) at java.lang.reflect.Method.invokeNative(Method.java) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:994) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:761) at dalvik.system.NativeStart.main(NativeStart.java) 
+5
source share
1 answer

It seems that below the line of code, the application crashes, which actually generates and shows some kind of dialog box that will never be undone / undone when the action (screen) is destroyed. please check if any dialogs on this screen open all closed or closed before this activity is destroyed.

in android.widget.MediaController.show (MediaController.javahaps38)

+1
source

Source: https://habr.com/ru/post/1200595/


All Articles