android.view.WindowManager$BadTokenException

Unable to add window -- token null is not for an application


Solutions on the web798

Solution icon of coderanch
via Coderanch by Saad Zahoor, 4 weeks ago
Unable to add window -- token null is not for an application

Solution icon of github
via GitHub by gattacus
, 3 months 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 github
Unable to add window -- token null is not for an application

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

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

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

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

Solution icon of stackoverflow
via Stack Overflow by Ram
, 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, 9 months ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
6 times, 2 months ago
4 times, 3 months ago
52 more bugmates