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 web626

  • via Stack Overflow by santafebound
    ,
  • via Stack Overflow by Pedro
    ,
  • via Stack Overflow by 박한빈
    ,
  • Stack trace

    • android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application at android.view.ViewRootImpl.setView(ViewRootImpl.java:571) at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:310) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:85) at android.app.Dialog.show(Dialog.java:319) at com.yitter.profile.UserProfileAdapter.lambda$deleteComment$115(UserProfileAdapter.java:286) at com.yitter.profile.UserProfileAdapter.access$lambda$2(UserProfileAdapter.java:0) at com.yitter.profile.UserProfileAdapter$$Lambda$3.done(Unknown Source) at com.parse.ParseTaskUtils$2$1.run(ParseTaskUtils.java:116) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5417) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

    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

    bayukresnobayukresno
    14 times, last one
    spespe
    2 times, last one
    filpgamefilpgame
    2 times, last one
    Unknown visitor
    Unknown visitorOnce,
    dontdropmybassdontdropmybass
    2 times, last one
    52 more bugmates