android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@c166e21 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 TheDrHax
, 2 months ago
Unable to add window -- token android.os.BinderProxy@c166e21 is not valid; is your activity running?
via GitHub by TheDrHax
, 1 year ago
Unable to add window -- token android.os.BinderProxy@c166e21 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 Libin
, 2 years ago
Unable to add window -- token null is not for an application
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
android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@c166e21 is not valid; is your activity running?
at android.view.ViewRootImpl.setView(ViewRootImpl.java:567)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:310)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:85)
at android.app.Dialog.show(Dialog.java:319)
at android.app.AlertDialog$Builder.show(AlertDialog.java:1112)
at pw.thedrhax.mosmetro.updater.UpdateCheckTask.showDialog(UpdateCheckTask.java:108)
at pw.thedrhax.mosmetro.activities.SettingsActivity$1.result(SettingsActivity.java:49)
at pw.thedrhax.mosmetro.updater.UpdateCheckTask.onPostExecute(UpdateCheckTask.java:78)
at pw.thedrhax.mosmetro.updater.UpdateCheckTask.onPostExecute(UpdateCheckTask.java:19)
at android.os.AsyncTask.finish(AsyncTask.java:651)

Users with the same issue

2 times, 1 year ago
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
2 times, 9 months ago
2 times, 1 year ago
55 more bugmates

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