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 Redman
, 1 year ago
Unable to add window -- token android.view.ViewRootImpl$W@228edc12 is not valid; is your activity running?
via Stack Overflow by Unknown author, 2 years ago
Unable to add window -- token android.view.ViewRootImpl$W@1d3f737a is not valid; is your activity running?
via Stack Overflow by s.vijay
, 1 year ago
Unable to add window -- token android.view.ViewRootImpl$W@2e5df6b is not valid; is your activity running?
via Stack Overflow by k9yosh
, 2 years ago
Unable to add window -- token android.view.ViewRootImpl$W@945936c is not valid; is your activity running?
via Stack Overflow by Jeremy Styers
, 2 years ago
Unable to add window -- token android.view.ViewRootImpl$W@40de1700 is not valid; is your activity running?
android.view.WindowManager$BadTokenException: Unable to add window -- token android.view.ViewRootImpl$W@228edc12 is not valid; is your activity running? at android.view.ViewRootImpl.setView(ViewRootImpl.java:562) at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:282) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:85) at android.widget.PopupWindow.invokePopup(PopupWindow.java:1104) at android.widget.PopupWindow.showAsDropDown(PopupWindow.java:1008) at android.widget.ListPopupWindow.show(ListPopupWindow.java:639) at android.widget.Spinner$DropdownPopup.show(Spinner.java:1138) at android.widget.Spinner.performClick(Spinner.java:683) at android.view.View$PerformClick.run(View.java:19881) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5294) 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:904) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)