android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running?
Searched on Google with the first line of a JAVA stack trace?
We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.
Recommended solutions based on your search
Solutions on the web
via Stack Overflow by 3lolo
, 1 year agovia Stack Overflow by Kristof Hermans
, 1 year agovia Stack Overflow by Peter Shaw
, 1 year agovia GitHub by texas697
, 1 year agovia GitHub by rgoldiez
, 8 months agovia GitHub by NikoSoftware
, 8 months agoandroid.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)