android.view.WindowManager$BadTokenException

Unable to add window -- token android.os.BinderProxy@405148b0 is not valid; is your activity running?

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 web230

  • via GitHub by obilodeau
    ,
  • Stack trace

    • android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@405148b0 is not valid; is your activity running? at android.view.ViewRoot.setView(ViewRoot.java:527) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:177) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91) at android.view.Window$LocalWindowManager.addView(Window.java:424) at android.app.Dialog.show(Dialog.java:241) at android.app.Activity.showDialog(Activity.java:2566) at android.app.Activity.showDialog(Activity.java:2524) at org.tomdroid.ui.Tomdroid$SyncMessageHandler.handleMessage(Tomdroid.java:922) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:3683) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) at dalvik.system.NativeStart.main(Native Method)

    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

    We couldn't find other users who have seen this exception.