android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@40704650 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 GitHub by obilodeau
, 1 year ago
Unable to add window -- token android.os.BinderProxy@40704650 is not valid; is your activity running?
via GitHub by obilodeau
, 1 year ago
Unable to add window -- token android.os.BinderProxy@43cccb20 is not valid; is your activity running?
via Stack Overflow by wufoo
, 2 years ago
Unable to add window -- token android.os.BinderProxy@40bb3de0 is not valid; is your acti vity running?
via Stack Overflow by hunterp
, 2 years ago
Unable to add window -- token android.os.BinderProxy@4322fef0 is not valid; is your activity running?
via Stack Overflow by IssacZH.
, 2 years ago
Unable to add window -- token android.app.LocalActivityManager$LocalActivityRecord@4057a200 is not valid; is your activity running?
via scriptscoop.com by Unknown author, 2 years ago
Unable to add window -- token android.app.LocalActivityManager$LocalActivityRecord@462b6c10 is not valid; is your activity running?
android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@40704650 is not valid; is your activity running?
at android.view.ViewRoot.setView(ViewRoot.java:527)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:177)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)
at android.view.Window$LocalWindowManager.addView(Window.java:424)
at android.app.Dialog.show(Dialog.java:241)
at android.app.AlertDialog$Builder.show(AlertDialog.java:802)
at org.tomdroid.ui.SyncMessageHandler.handleMessage(SyncMessageHandler.java:112)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3683)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)

Users with the same issue

2 times, 1 year ago
2 times, 1 year ago
2 times, 9 months ago
2 times, 1 year ago
Once, 1 year ago
2 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.