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

Stack Overflow | User54321 | 3 months ago
  1. 0

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

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

    Alertdialog can't show on getview

    Stack Overflow | 3 years ago | Andrea Bandiera
    android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
  3. 0

    Android map popup on tap

    Stack Overflow | 6 years ago | Swan
    android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    finish activity from non activity

    Stack Overflow | 4 years ago | Manoj Fegde
    android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
  6. 0

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

    Stack Overflow | 4 years ago | robguinness
    android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application

  1. dontdropmybass 2 times, last 4 months ago
  2. spe 2 times, last 6 months ago
  3. lribeiro 2 times, last 7 months ago
  4. syntech16 1 times, last 7 months ago
2 unregistered visitors
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:853)
    2. android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:337)
    3. android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)
    4. android.app.Dialog.show(Dialog.java:350)
    5. android.app.AlertDialog$Builder.show(AlertDialog.java:1113)
    5 frames