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

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 listview with EditText
    via Stack Overflow by 3lolo
    ,
  • Display popup on start of activity
    via Stack Overflow by Zac Powell
    ,
  • how to show popup window in my main window?
    via Stack Overflow by ganesh
    ,
  • Android PopupWindow wont open properly
    via Stack Overflow by RenegadeAndy
    ,
  • The galaxy s3 wont take picture
    via Stack Overflow by gabrjan
    ,
  • Can't get QuickAction to load
    via Stack Overflow by StephanM
    ,
    • 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)

    Users with the same issue

    Adrien
    Adrien1 times, last one,
    Unknown visitor1 times, last one,
    jk
    jk4 times, last one,
    Stefan Braune
    Stefan Braune1 times, last one,
    Unknown visitor1 times, last one,
    52 more bugmates