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

Stack Overflow | Kumar | 4 months ago
  1. 0

    Adding android progress dialog inside Background service with AsyncTask,Getting FATAL Exception

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

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

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

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

    GitHub | 3 years ago | banxi1988
    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

    CrashManager.register() requires an Activity Context, not just any Context

    GitHub | 4 years ago | gregschlom
    java.lang.RuntimeException: Unable to resume activity {com.foo.app/com.foo.app.MyActivity}: android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
  6. 0

    NPE in Custom DialogBox

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

  1. filpgame 1 times, last 2 weeks ago
  2. franky li 2 times, last 1 month ago
  3. dontdropmybass 2 times, last 4 months ago
  4. ank_07 4 times, last 4 months ago
  5. bayukresno 1 times, last 5 months ago
8 more registered users
5 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
    Dialog.show
    1. android.view.ViewRootImpl.setView(ViewRootImpl.java:594)
    2. android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:259)
    3. android.view.WindowManagerImpl.addView(WindowManagerImpl.java:69)
    4. android.app.Dialog.show(Dialog.java:286)
    4 frames