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

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 JIRA by Jingya Cao, 1 year ago
Unable to add window -- token null is not for an application
via JIRA by Elliot Smith, 1 year ago
Unable to add window -- token null is not for an application
via JIRA by Elliot Smith, 1 year ago
Unable to add window -- token null is not for an application
via JIRA by Jingya Cao, 1 year ago
Unable to add window -- token null is not for an application
via Stack Overflow by NoobBoi
, 1 year 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
android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
at android.view.ViewRootImpl.setView(ViewRootImpl.java:575)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:246)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:69)
at android.app.Dialog.show(Dialog.java:281)
at android.app.Presentation.show(Presentation.java:235)
at org.xwalk.core.internal.extension.api.presentation.PresentationViewJBMR1.show(PresentationViewJBMR1.java:28)
at org.xwalk.core.internal.extension.api.presentation.PresentationExtension.updatePresentationView(PresentationExtension.java:395)
at org.xwalk.core.internal.extension.api.presentation.PresentationExtension.access$1000(PresentationExtension.java:34)
at org.xwalk.core.internal.extension.api.presentation.PresentationExtension$2.run(PresentationExtension.java:295)
at android.os.Handler.handleCallback(Handler.java:725)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:152)
at android.app.ActivityThread.main(ActivityThread.java:5132)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)

Users with the same issue

10 times, 1 month ago
19 times, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 2 months ago
6 times, 5 months ago
4 times, 7 months ago
55 more bugmates

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