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 umeng.com by Unknown author, 9 months ago
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?
via Stack Overflow by ankur agarwal
, 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:590)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:269)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:69)
at android.app.Dialog.show(Dialog.java:323)
at android.app.AlertDialog$Builder.show(AlertDialog.java:961)
at com.umeng.socialize.sso.UMQQSsoHandler.showDialog(UMQQSsoHandler.java:178)
at com.umeng.socialize.sso.UMQQSsoHandler.handleOnClick(UMQQSsoHandler.java:99)
at com.umeng.socialize.sso.UMTencentSsoHandler$1.onClick(UMTencentSsoHandler.java:120)
at com.umeng.socialize.bean.SnsPlatform.performClick(SnsPlatform.java:110)
at com.umeng.socialize.view.b$1.a(ShareBoard.java:189)
at com.umeng.socialize.view.b$1.a(ShareBoard.java:88)
at com.umeng.socialize.view.b$1$1.onClick(ShareBoard.java:122)
at android.view.View.performClick(View.java:4457)
at android.view.View$PerformClick.run(View.java:18491)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5336)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:871)

Users with the same issue

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

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