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

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 jamesbedontHDS
, 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 valid; is your activity running?
via Stack Overflow by ankur agarwal
, 2 years ago
Unable to add window -- token null is not for an application
via programwith.com by Unknown author, 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
via Stack Overflow by U Khan
, 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:566)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:282)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:85)
at android.app.Dialog.show(Dialog.java:298)
at org.chromium.content.browser.input.SelectPopupDialog.show(SelectPopupDialog.java:133)
at org.chromium.content.browser.ContentViewCore.showSelectPopup(ContentViewCore.java:2476)
at org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method)
at org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:53)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)

Users with the same issue

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

Write tip

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