android.view.WindowManager$BadTokenException

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

Solutions on the web792

  • via Coderanch by Saad Zahoor, 1 week ago
    Unable to add window -- token null is not for an application
  • via GitHub by gattacus
    , 2 months ago
    Unable to add window -- token null is not for an application
  • Unable to add window -- token null is not for an application
  • Stack trace

    • android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application at android.view.ViewRootImpl.setView(ViewRootImpl.java:536) at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:259) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:69) at android.app.Dialog.show(Dialog.java:286) at android.app.Presentation.show(Presentation.java:235) at org.xwalk.core.internal.extension.api.presentation.PresentationViewJBMR1.show(PresentationViewJBMR1.java:28) at org.xwalk.core.internal.extension.api.presentation.PresentationExtension.updatePresentationView(PresentationExtension.java:395) at org.xwalk.core.internal.extension.api.presentation.PresentationExtension.access$1000(PresentationExtension.java:34) at org.xwalk.core.internal.extension.api.presentation.PresentationExtension$2.run(PresentationExtension.java:295) at android.os.Handler.handleCallback(Handler.java:733) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5001) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) 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

    6 times, 1 month ago
    4 times, 3 months ago
    2 times, 4 months ago
    Unknown user
    2 times, 5 months ago
    Once, 5 months ago
    52 more bugmates