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

Stack Overflow | Naroju | 2 months ago
  1. 0

    Error in WindowManager (In Service): Unable to add window -- token null is not for an application

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

    系统dialog 弹出的sina登录和注册和窗口,使用getContext().getApplicationContext(),在注册页面出现错误

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

    Android spinner problem

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

    Spinner dynamic error

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

    Spinner not working in ListView

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

  1. cesarnog 1 times, last 2 months ago
  2. brunosatriani 10 times, last 5 months ago
  3. jk 25 times, last 4 months ago
  4. syntech16 1 times, last 7 months ago
9 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
    ActivityThread.main
    1. android.view.ViewRootImpl.setView(ViewRootImpl.java:583)
    2. android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:282)
    3. android.view.WindowManagerImpl.addView(WindowManagerImpl.java:85)
    4. android.app.Dialog.show(Dialog.java:298)
    5. android.app.AlertDialog$Builder.show(AlertDialog.java:993)
    6. android.widget.VideoView$5.onError(VideoView.java:537)
    7. android.media.MediaPlayer$EventHandler.handleMessage(MediaPlayer.java:2592)
    8. android.os.Handler.dispatchMessage(Handler.java:102)
    9. android.os.Looper.loop(Looper.java:135)
    10. android.app.ActivityThread.main(ActivityThread.java:5343)
    10 frames
  3. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  4. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:907)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:702)
    2 frames