android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@12b6e281 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 Burak Akyalçın
, 1 year ago
Unable to add window -- token android.os.BinderProxy@12b6e281 is not valid; is your activity running?
via Stack Overflow by Mark James
, 10 months ago
Unable to add window -- token android.os.BinderProxy@5aa47b4 is not valid; is your activity running?
via GitHub by caosc900224
, 1 month ago
Unable to add window -- token android.os.BinderProxy@4371e308 is not valid; is your activity running?
via Stack Overflow by Unknown author, 2 years ago
Unable to add window -- token null is not for an application
via Stack Overflow by garlicman
, 2 years ago
Unable to add window -- token null is not for an application
via Stack Overflow by Libin
, 2 years ago
Unable to add window -- token null is not for an application
android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@12b6e281 is not valid; is your activity running?
at android.view.ViewRootImpl.setView(ViewRootImpl.java:576)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:272)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:69)
at android.app.Dialog.show(Dialog.java:306)
at android.app.AlertDialog$Builder.show(AlertDialog.java:987)
at applications.loginandregister.BackgroundTask.display(BackgroundTask.java:183)
at applications.loginandregister.BackgroundTask.onPostExecute(BackgroundTask.java:169)
at applications.loginandregister.BackgroundTask.onPostExecute(BackgroundTask.java:29)
at android.os.AsyncTask.finish(AsyncTask.java:632)
at android.os.AsyncTask.access$600(AsyncTask.java:177)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5349)
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:908)

Users with the same issue

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

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