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 Xhacker, 1 year ago
Unable to add window -- token null is not for an application
via JIRA by Xhacker, 1 year 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
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 GitHub by caosc900224
, 1 month ago
Unable to add window -- token android.os.BinderProxy@4371e308 is not valid; is your activity running?
android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
at android.view.ViewRootImpl.setView(ViewRootImpl.java:797)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:288)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:73)
at android.app.Dialog.show(Dialog.java:285)
at org.xwalk.core.internal.XWalkResourceClientInternal.onReceivedLoadError(XWalkResourceClientInternal.java:201)
at org.xwalk.core.internal.XWalkContentsClientBridge.onReceivedError(XWalkContentsClientBridge.java:370)
at org.xwalk.core.internal.XWalkContentsClient$XWalkWebContentsObserver.didFailLoad(XWalkContentsClient.java:71)
at org.chromium.content.browser.webcontents.WebContentsObserverProxy.didFailLoad(WebContentsObserverProxy.java:99)
at org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method)
at org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:53)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5450)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1187)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)

Users with the same issue

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

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