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

Stack Overflow | placplacboom | 5 months ago
  1. 0

    "Token is null" using singleton for Context/Activity

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

    Android: AsyncTask ProgressDialog bad token window?

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

    Android: ProgressDialog.show() crashes with getApplicationContext

    Stack Overflow | 7 years ago | Felix
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tastekid.TasteKid/com.tastekid.TasteKid.YouTube}: 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

    Waiting for GPS fix dialog box throws Bad token Exception - Android

    Stack Overflow | 5 years ago | adam
    java.lang.RuntimeException: Unable to start activity ComponentInfo{Firstdroid.Gps/Firstdroid.Gps.MapViewer}: android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
  6. 0

    Upload to Server Program stopped, I can't figure out why

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

  1. filpgame 1 times, last 4 weeks 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
    ProgressDialog.show
    1. android.view.ViewRootImpl.setView(ViewRootImpl.java:690)
    2. android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:289)
    3. android.view.WindowManagerImpl.addView(WindowManagerImpl.java:85)
    4. android.app.Dialog.show(Dialog.java:311)
    5. android.app.ProgressDialog.show(ProgressDialog.java:116)
    5 frames