android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running?

Stack Overflow | Chen Li | 5 months ago
  1. 0

    WebView Video FullScreen Mode Crash in some of Android Device When using application context

    Stack Overflow | 5 months ago | Chen Li
    android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running?
  2. 0

    how to stop webview video running in background?

    Stack Overflow | 3 years ago | Omid Aminiva
    android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running?
  3. 0

    android.view.WindowManager$BadTokenException

    Stack Overflow | 2 years ago | Amsheer
    android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running?
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    fix bug

    GitHub | 2 years ago | wkodate
    android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running?
  6. 0

    Issue 3440 - android - BadTokenException from the ZoomButtonsController - Android Open Source Project - Issue Tracker - Google Project Hosting

    google.com | 11 months ago
    android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running?

  1. cesarnog 1 times, last 2 months ago
  2. brunosatriani 10 times, last 5 months ago
  3. jk 25 times, last 4 months ago
  4. syntech16 1 times, last 7 months ago
9 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. android.view.WindowManager$BadTokenException

    Unable to add window -- token null is not valid; is your activity running?

    at android.view.ViewRootImpl.setView()
  2. Android Platform
    ActivityThread.main
    1. android.view.ViewRootImpl.setView(ViewRootImpl.java:697)
    2. android.view.WindowManagerImpl.addView(WindowManagerImpl.java:345)
    3. android.view.WindowManagerImpl.addView(WindowManagerImpl.java:224)
    4. android.view.WindowManagerImpl$CompatModeWrapper.addView(WindowManagerImpl.java:149)
    5. android.view.Window$LocalWindowManager.addView(Window.java:554)
    6. android.widget.MediaController.show(MediaController.java:338)
    7. android.webkit.HTML5VideoFullScreen.showControllerInFullScreen(HTML5VideoFullScreen.java:387)
    8. android.webkit.HTML5VideoViewProxy$VideoPlayer.end(HTML5VideoViewProxy.java:310)
    9. android.webkit.HTML5VideoViewProxy.handleMessage(HTML5VideoViewProxy.java:450)
    10. android.os.Handler.dispatchMessage(Handler.java:99)
    11. android.os.Looper.loop(Looper.java:137)
    12. android.app.ActivityThread.main(ActivityThread.java:4898)
    12 frames
  3. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:511)
    2 frames
  4. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)
    2 frames