android.view.WindowManager$BadTokenException

Unable to add window -- token null is not for an application

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web547

  • via Stack Overflow by Andrea Bandiera
    ,
  • via Stack Overflow by Swan
    ,
  • Stack trace

    • 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) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:687) at dalvik.system.NativeStart.main(Native Method)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    filpgamefilpgame
    2 times, last one
    dontdropmybassdontdropmybass
    2 times, last one
    spespe
    2 times, last one
    syntech16syntech16
    Once,
    Unknown visitor
    Unknown visitorOnce,
    52 more bugmates