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( at android.view.WindowManagerGlobal.addView( at android.view.WindowManagerImpl.addView( at at$ at com.umeng.socialize.sso.UMQQSsoHandler.showDialog( at com.umeng.socialize.sso.UMQQSsoHandler.handleOnClick( at com.umeng.socialize.sso.UMTencentSsoHandler$1.onClick( at com.umeng.socialize.bean.SnsPlatform.performClick( at com.umeng.socialize.view.b$1.a( at com.umeng.socialize.view.b$1.a( at com.umeng.socialize.view.b$1$1.onClick( at android.view.View.performClick( at android.view.View$ at android.os.Handler.handleCallback( at android.os.Handler.dispatchMessage( at android.os.Looper.loop( at at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke( at$ at 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

    2 times, last one
    2 times, last one
    2 times, last one
    Unknown visitor
    Unknown visitorOnce,
    52 more bugmates