android.view.WindowManager$BadTokenException

Unable to add window -- token android.view.ViewRootImpl$W@41601028 is not valid; is your activity running?

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web793

  • Unable to add window -- token android.view.ViewRootImpl$W@41601028 is not valid; is your activity running?
  • via GitHub by chrislacy
    , 8 months ago
    Unable to add window -- token android.view.ViewRootImpl$W@433d9928 is not valid; is your activity running?
  • Unable to add window -- token android.view.ViewRootImpl$W@421a46d8 is not valid; is your activity running?
  • Stack trace

    • android.view.WindowManager$BadTokenException: Unable to add window -- token android.view.ViewRootImpl$W@41601028 is not valid; is your activity running? at android.view.ViewRootImpl.setView(ViewRootImpl.java:513) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:301) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:215) at android.view.WindowManagerImpl$CompatModeWrapper.addView(WindowManagerImpl.java:140) at android.view.Window$LocalWindowManager.addView(Window.java:537) at android.widget.PopupWindow.invokePopup(PopupWindow.java:988) at android.widget.PopupWindow.showAtLocation(PopupWindow.java:845) at android.widget.PopupWindow.showAtLocation(PopupWindow.java:809) at android.inputmethodservice.KeyboardView.showKey(KeyboardView.java:960) at android.inputmethodservice.KeyboardView.access$100(KeyboardView.java:69) at android.inputmethodservice.KeyboardView$1.handleMessage(KeyboardView.java:260) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4424) 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:784) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) at dalvik.system.NativeStart.main(Native Method)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    52 more bugmates