android.view.WindowManager$BadTokenException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Android spinner problem
    via Stack Overflow by Harsh
    ,
  • Spinner dynamic error
    via Stack Overflow by Cristian Cañadas
    ,
  • Spinner not working in ListView
    via Stack Overflow by AB1209
    ,
  • Popup window in incomming screen
    via Stack Overflow by shivaitian
    ,
  • Spinner makes android application crash
    via Stack Overflow by tcp
    ,
    • android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application at android.view.ViewRootImpl.setView(ViewRootImpl.java:583) at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:282) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:85) at android.app.Dialog.show(Dialog.java:298) at android.app.AlertDialog$Builder.show(AlertDialog.java:993) at android.widget.VideoView$5.onError(VideoView.java:537) at android.media.MediaPlayer$EventHandler.handleMessage(MediaPlayer.java:2592) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5343) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:907) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:702)

    Users with the same issue

    syntech16
    1 times, last one,
    Indri Yunita
    4 times, last one,
    cesarnog
    1 times, last one,
    Unknown visitor1 times, last one,
    jk
    25 times, last one,
    52 more bugmates