android.view.WindowManager$BadTokenException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • android.view.WindowManager$BadTokenException
    via Stack Overflow by Amsheer
    ,
  • fix bug
    via GitHub by wkodate
    ,
  • Unable to add window Badtoken Exception
    via Stack Overflow by Sushant kumar
    ,
    • android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running? at android.view.ViewRootImpl.setView(ViewRootImpl.java:697) 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:554) at android.widget.MediaController.show(MediaController.java:338) at android.webkit.HTML5VideoFullScreen.showControllerInFullScreen(HTML5VideoFullScreen.java:387) at android.webkit.HTML5VideoViewProxy$VideoPlayer.end(HTML5VideoViewProxy.java:310) at android.webkit.HTML5VideoViewProxy.handleMessage(HTML5VideoViewProxy.java:450) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4898) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Indri YunitaIndri Yunita
    4 times, last one,
    cesarnogcesarnog
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    jkjk
    25 times, last one,
    52 more bugmates