android.view.WindowManager$BadTokenException

Unable to add window -- token null 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

  • via GitHub by nikclayton
    , 3 weeks ago
    Unable to add window -- token null is not valid; is your activity running?
  • Unable to add window -- token null is not valid; is your activity running?
  • via GitHub by alexeyvasilyev
    , 2 months ago
    Unable to add window -- token null is not valid; is your activity running?
  • Stack trace

    • android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running? at android.view.ViewRootImpl.setView(ViewRootImpl.java:696) at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:289) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:85) at android.widget.PopupWindow.invokePopup(PopupWindow.java:1153) at android.widget.PopupWindow.showAtLocation(PopupWindow.java:978) at android.widget.PopupWindow.showAtLocation(PopupWindow.java:942) at com.meizu.widget.MagnifierPopupWindow.showMagnifier(MagnifierPopupWindow.java:106) at android.widget.Editor$MzInsertionPointCursorController.update(Editor.java:5567) at android.widget.Editor$MzInsertionPointCursorController.show(Editor.java:5571) at android.widget.Editor.performLongClickMz(Editor.java:5290) at android.widget.TextView.performLongClick(TextView.java:9126) at android.view.View$CheckForLongPress.run(View.java:20357) at android.os.Handler.handleCallback(Handler.java:815) at android.os.Handler.dispatchMessage(Handler.java:104) at android.os.Looper.loop(Looper.java:194) at android.app.ActivityThread.main(ActivityThread.java:5824) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1010) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)

    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, 5 months ago
    Unknown user
    Once, 5 months ago
    4 times, 1 year ago
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    52 more bugmates