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

ne.jp | 3 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    VideoViewでBadTokenException - そこはかとなく書くよ。

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

    Android - Youtube 3gp file not found

    Stack Overflow | 5 years ago | dany84
    android.view.WindowManager$BadTokenException: Unable to add window -- token android.app.LocalActivityManager$LocalActivityRecord@418c8408 is not valid; is your activity running?
  3. 0

    VideoView and MediaController within a DayDream?

    Stack Overflow | 2 years ago | EpicPandaForce
    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

    VideoView in Recyclerview throws: Unable to add window -- token null is not for an application

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

    Lynn Ferris - Google+

    google.com | 1 year ago
    android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application

  1. Indri Yunita 4 times, last 2 weeks ago
  2. cesarnog 1 times, last 6 months ago
  3. brunosatriani 10 times, last 10 months ago
  4. jk 25 times, last 9 months ago
  5. syntech16 1 times, last 12 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.ViewRoot.setView()
  2. Android Platform
    ActivityThread.main
    1. android.view.ViewRoot.setView(ViewRoot.java:509)
    2. android.view.WindowManagerImpl.addView(WindowManagerImpl.java:177)
    3. android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)
    4. android.app.Dialog.show(Dialog.java:241)
    5. android.app.AlertDialog$Builder.show(AlertDialog.java:802)
    6. android.widget.VideoView$4.onError(VideoView.java:387)
    7. android.media.MediaPlayer$EventHandler.handleMessage(MediaPlayer.java:1264)
    8. android.os.Handler.dispatchMessage(Handler.java:99)
    9. android.os.Looper.loop(Looper.java:123)
    10. android.app.ActivityThread.main(ActivityThread.java:4627)
    10 frames
  3. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:521)
    2 frames
  4. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
    2 frames