android.view.WindowManager$BadTokenException

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

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web298

Stack trace

  • 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)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

syntech16syntech16
Once,
Indri YunitaIndri Yunita
4 times, last one
cesarnogcesarnog
Once,
Unknown visitor
Unknown visitorOnce,
jkjk
25 times, last one
9 more bugmates