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

umeng.com | 3 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    分享也点击QQ图标直接崩溃_U盟友盟社会化分享论坛_【友盟+】开发者社区

    umeng.com | 3 months ago
    android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
  2. 0

    分享微信朋友圈闪退_U盟友盟用户反馈论坛_友盟开发者社区

    umeng.com | 1 year ago
    java.lang.IllegalArgumentException: View=com.android.internal.policy.impl.PhoneWindow$DecorView{23d74a64 V.E..... R.....ID 0,0-751,345} not attached to window manager
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    App crashed when try to display dialog box

    Stack Overflow | 1 year ago | John
    android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
  5. 0

    Show ProgessDialog on Button Click

    Stack Overflow | 3 years ago
    android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. android.view.WindowManager$BadTokenException

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

    at android.view.ViewRootImpl.setView()
  2. Android Platform
    AlertDialog$Builder.show
    1. android.view.ViewRootImpl.setView(ViewRootImpl.java:590)
    2. android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:269)
    3. android.view.WindowManagerImpl.addView(WindowManagerImpl.java:69)
    4. android.app.Dialog.show(Dialog.java:323)
    5. android.app.AlertDialog$Builder.show(AlertDialog.java:961)
    5 frames
  3. com.umeng.socialize
    b$1$1.onClick
    1. com.umeng.socialize.sso.UMQQSsoHandler.showDialog(UMQQSsoHandler.java:178)
    2. com.umeng.socialize.sso.UMQQSsoHandler.handleOnClick(UMQQSsoHandler.java:99)
    3. com.umeng.socialize.sso.UMTencentSsoHandler$1.onClick(UMTencentSsoHandler.java:120)
    4. com.umeng.socialize.bean.SnsPlatform.performClick(SnsPlatform.java:110)
    5. com.umeng.socialize.view.b$1.a(ShareBoard.java:189)
    6. com.umeng.socialize.view.b$1.a(ShareBoard.java:88)
    7. com.umeng.socialize.view.b$1$1.onClick(ShareBoard.java:122)
    7 frames
  4. Android Platform
    ActivityThread.main
    1. android.view.View.performClick(View.java:4457)
    2. android.view.View$PerformClick.run(View.java:18491)
    3. android.os.Handler.handleCallback(Handler.java:733)
    4. android.os.Handler.dispatchMessage(Handler.java:95)
    5. android.os.Looper.loop(Looper.java:136)
    6. android.app.ActivityThread.main(ActivityThread.java:5336)
    6 frames
  5. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:515)
    2 frames
  6. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:871)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:687)
    2 frames
  7. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame