An Android WindowManager exception occurred when trying to add a window. The error message indicates the token provided is invalid, suggesting the activity may not be running. The stack trace shows the exception was thrown when trying to show a PopupWindow.
An Android WindowManager exception occurred when trying to add a window. The error message indicates the token provided is invalid, suggesting the activity may not be running. The stack trace shows the exception was thrown when trying to show a PopupWindow.
An Android WindowManager exception occurred when trying to add a window. The error message indicates the token provided is invalid, suggesting the activity may not be running. The stack trace shows the exception was thrown when trying to show a PopupWindow.
WindowManager$BadTokenException: Unable to add window -- token
android.view.ViewRootImpl$W@f1a47bc is not valid; is your activity running? at android.view.ViewRootImpl.setView(ViewRootImpl.java:1013) at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:447) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:118) at android.widget.PopupWindow.invokePopup(PopupWindow.java:1632) at android.widget.PopupWindow.showAtLocation(PopupWindow.java:1381) at android.widget.PopupWindow.showAtLocation(PopupWindow.java:1347) at android.widget.Editor$HandleView.updatePosition(Editor.java:4892) at android.widget.Editor$PositionListener.onPreDraw(Editor.java:3323) at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:1088) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2979) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1876) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:8167) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1057) at android.view.Choreographer.doCallbacks(Choreographer.java:875) at android.view.Choreographer.doFrame(Choreographer.java:776) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1042) at android.os.Handler.handleCallback(Handler.java:900) at android.os.Handler.dispatchMessage(Handler.java:103) at android.os.Looper.loop(Looper.java:219) at android.app.ActivityThread.main(ActivityThread.java:8349) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1055)