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

Stack Overflow | skbrhmn | 4 months ago
  1. 0

    App crashes instead of Date Picker dialog popping up

    Stack Overflow | 4 months ago | skbrhmn
    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:857)
    2. android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:337)
    3. android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)
    4. android.app.Dialog.show(Dialog.java:350)
    4 frames
  3. com.bluefirelabs.apptiva
    UserInfoActivity$7.onClick
    1. com.bluefirelabs.apptiva.UserInfoActivity$7.onClick(UserInfoActivity.java:125)
    1 frame
  4. Android Platform
    ActivityThread.main
    1. android.view.View.performClick(View.java:5702)
    2. android.widget.TextView.performClick(TextView.java:10885)
    3. android.view.View$PerformClick.run(View.java:22533)
    4. android.os.Handler.handleCallback(Handler.java:739)
    5. android.os.Handler.dispatchMessage(Handler.java:95)
    6. android.os.Looper.loop(Looper.java:158)
    7. android.app.ActivityThread.main(ActivityThread.java:7229)
    7 frames
  5. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  6. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
    2 frames