android.view.WindowManager$BadTokenException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • BadTokenException
    via GitHub by gattacus
    ,
  • Alertdialog can't show on getview
    via Stack Overflow by Andrea Bandiera
    ,
  • Android map popup on tap
    via Stack Overflow by Swan
    ,
  • finish activity from non activity
    via Stack Overflow by Manoj Fegde
    ,
  • Error on send GPS location to friend
    via Stack Overflow by Ram
    ,
  • Error calling dialog from Service Android
    via Stack Overflow by Joseph82
    ,
  • Multiple Dialogs, second not displaying
    via Stack Overflow by Mike
    ,
  • Android - Actionbar tab + dialog
    via Stack Overflow by M.V.
    ,
    • android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application at android.app.ActivityThread.handleReceiver(ActivityThread.java:3641) at android.app.ActivityThread.access$2000(ActivityThread.java:221) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1876) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:158) at android.app.ActivityThread.main(ActivityThread.java:7224) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) Caused by: android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application at android.view.ViewRootImpl.setView(ViewRootImpl.java:853) at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:337) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91) at android.app.Dialog.show(Dialog.java:350) at android.app.AlertDialog$Builder.show(AlertDialog.java:1113)

    Users with the same issue

    filpgamefilpgame
    2 times, last one,
    dontdropmybassdontdropmybass
    2 times, last one,
    spespe
    2 times, last one,
    syntech16syntech16
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    52 more bugmates