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

tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    how to set a progress Dialog till server response ?? i'm trying but it shows error at show method of progress dialog #Json #Volley #StringRequest

    Stack Overflow | 1 week ago | Sachin Arora
    android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
  2. 0

    "Token is null" using singleton for Context/Activity

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

    Why application throwing exception while starting progress dialog throw application

    Stack Overflow | 5 years ago | Satya
    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

    Correctly dismissing progress dialog

    Stack Overflow | 4 years ago | noloman
    android.view.WindowManager$BadTokenException: Unable to add window -- token android.app.LocalActivityManager$LocalActivityRecord@48189240 is not valid; is your activity running?
  6. 0

    Android show some instruction in LogCat

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

  1. filpgame 1 times, last 3 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
    ProgressDialog.show
    1. android.view.ViewRootImpl.setView(ViewRootImpl.java:571)
    2. android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:310)
    3. android.view.WindowManagerImpl.addView(WindowManagerImpl.java:85)
    4. android.app.Dialog.show(Dialog.java:319)
    5. android.app.ProgressDialog.show(ProgressDialog.java:116)
    6. android.app.ProgressDialog.show(ProgressDialog.java:99)
    7. android.app.ProgressDialog.show(ProgressDialog.java:94)
    7 frames