android.view.WindowManager$BadTokenException: Unable to add window android.view.ViewRootImpl$W@43093158 -- permission denied for this window type

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by irsalshabirin
, 1 year ago
Unable to add window android.view.ViewRootImpl$W@43093158 -- permission denied for this window type
via GitHub by alexeyvasilyev
, 6 months ago
Unable to add window -- token null is not valid; is your activity running?
via GitHub by mike-stetsenko
, 1 year ago
Unable to add window android.view.ViewRootImpl$W@142544eb -- permission denied for this window type
via Stack Overflow by Abhishek Taneja
, 5 months ago
Unable to add window android.view.ViewRootImpl$W@8fb7e76 -- permission denied for window type 2006
via Stack Overflow by vignesh
, 2 years ago
Unable to add window -- token null is not for an application
via Stack Overflow by user3453159
, 2 years ago
Unable to add window -- token android.os.BinderProxy@a65f2178 is not valid; is your activity running?
android.view.WindowManager$BadTokenException: Unable to add window android.view.ViewRootImpl$W@43093158 -- permission denied for this window type
at android.view.ViewRootImpl.setView(ViewRootImpl.java:587)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:263)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:69)
at com.github.johnpersano.supertoasts.library.Toaster.displaySuperToast(Toaster.java:186)
at com.github.johnpersano.supertoasts.library.Toaster.handleMessage(Toaster.java:136)

Users with the same issue

6 times, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
4 times, 1 year ago
16 times, 1 month ago
19 times, 2 months ago

Write tip

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