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

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.ViewRoot.setView(ViewRoot.java:509) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:177) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91) at android.app.Dialog.show(Dialog.java:241) at android.app.AlertDialog$Builder.show(AlertDialog.java:802) at android.widget.VideoView$4.onError(VideoView.java:387) at android.media.MediaPlayer$EventHandler.handleMessage(MediaPlayer.java:1264) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:4627) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:521) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)

    Users with the same issue

    syntech16
    syntech161 times, last one,
    Indri Yunita
    Indri Yunita4 times, last one,
    cesarnog
    cesarnog1 times, last one,
    Unknown visitor1 times, last one,
    jk
    jk25 times, last one,
    9 more bugmates