android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application


Solutions on the web

Solution icon of stackoverflow
Unable to add window -- token null is not for an application

Solution icon of github
via GitHub by davidgyoung
, 1 year ago
Unable to add window -- token null is not for an application

Solution icon of github
via GitHub by 12343954
, 1 year ago
**Unable to add window **-- token null is not for an application

Solution icon of github
via GitHub by Nicolas-M
, 1 year ago
Unable to add window -- token null is not for an application

Solution icon of github
Unable to add window -- token null is not for an application

Solution icon of github
Unable to add window -- token null is not for an application

Solution icon of googlegroups
Unable to add window -- token null is not for an application

Solution icon of googlegroups
via Google Groups by Marshall Pierce, 1 year ago
Unable to add window -- token null is not for an application

Solution icon of web
via JIRA by Xhacker, 1 year ago
Unable to add window -- token null is not for an application

Solution icon of stackoverflow
via Stack Overflow by M_E
, 1 year ago
Unable to add window -- token null is not for an application

Stack trace

android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
	at android.view.ViewRootImpl.setView(ViewRootImpl.java:571)
	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.ProgressDialog.show(ProgressDialog.java:116)
	at android.app.ProgressDialog.show(ProgressDialog.java:99)
	at android.app.ProgressDialog.show(ProgressDialog.java:94)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Once, 11 months ago
Samebug visitor profile picture
Unknown user
2 times, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
10 times, 1 week ago
19 times, 1 month ago
55 more bugmates