android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@405148b0 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@405148b0 is not valid; is your activity running?
via blogspot.com by Unknown author, 1 year ago
Unable to add window -- token android.os.BinderProxy@4479b390 is not valid; is your activity running?
via dimitar.me by Unknown author, 1 year ago
Unable to add windowtoken android.os.BinderProxy@447a6748 is not valid; is your activity 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 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?
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?
android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@405148b0 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.Activity.showDialog(Activity.java:2566)
at android.app.Activity.showDialog(Activity.java:2524)
at org.tomdroid.ui.Tomdroid$SyncMessageHandler.handleMessage(Tomdroid.java:922)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
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

You are the first who have seen this exception.

Write tip

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