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

JIRA | Xhacker | 1 year ago
  1. 0

    08-07 18:48:09.503 16494-16494/com.loocall.client W/System.err﹕ android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application 08-07 18:48:09.503 16494-16494/com.loocall.client W/System.err﹕ at android.view.ViewRootImpl.setView(ViewRootImpl.java:797) 08-07 18:48:09.503 16494-16494/com.loocall.client W/System.err﹕ at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:288) 08-07 18:48:09.503 16494-16494/com.loocall.client W/System.err﹕ at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:73) 08-07 18:48:09.503 16494-16494/com.loocall.client W/System.err﹕ at android.app.Dialog.show(Dialog.java:285) 08-07 18:48:09.503 16494-16494/com.loocall.client W/System.err﹕ at org.xwalk.core.internal.XWalkResourceClientInternal.onReceivedLoadError(XWalkResourceClientInternal.java:201) 08-07 18:48:09.503 16494-16494/com.loocall.client W/System.err﹕ at org.xwalk.core.internal.XWalkContentsClientBridge.onReceivedError(XWalkContentsClientBridge.java:370) 08-07 18:48:09.503 16494-16494/com.loocall.client W/System.err﹕ at org.xwalk.core.internal.XWalkContentsClient$XWalkWebContentsObserver.didFailLoad(XWalkContentsClient.java:71) 08-07 18:48:09.503 16494-16494/com.loocall.client W/System.err﹕ at org.chromium.content.browser.webcontents.WebContentsObserverProxy.didFailLoad(WebContentsObserverProxy.java:99) 08-07 18:48:09.503 16494-16494/com.loocall.client W/System.err﹕ at org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method) 08-07 18:48:09.503 16494-16494/com.loocall.client W/System.err﹕ at org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:53) 08-07 18:48:09.503 16494-16494/com.loocall.client W/System.err﹕ at android.os.Handler.dispatchMessage(Handler.java:99) 08-07 18:48:09.513 16494-16494/com.loocall.client W/System.err﹕ at android.os.Looper.loop(Looper.java:137) 08-07 18:48:09.513 16494-16494/com.loocall.client W/System.err﹕ at android.app.ActivityThread.main(ActivityThread.java:5450) 08-07 18:48:09.513 16494-16494/com.loocall.client W/System.err﹕ at java.lang.reflect.Method.invokeNative(Native Method) 08-07 18:48:09.513 16494-16494/com.loocall.client W/System.err﹕ at java.lang.reflect.Method.invoke(Method.java:525) 08-07 18:48:09.513 16494-16494/com.loocall.client W/System.err﹕ at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1187) 08-07 18:48:09.513 16494-16494/com.loocall.client W/System.err﹕ at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003) 08-07 18:48:09.513 16494-16494/com.loocall.client W/System.err﹕ at dalvik.system.NativeStart.main(Native Method) anyone can tell me how to disable pull refresh?

    JIRA | 1 year ago | Xhacker
    android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
  2. 0

    08-07 18:48:09.503 16494-16494/com.loocall.client W/System.err﹕ android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application 08-07 18:48:09.503 16494-16494/com.loocall.client W/System.err﹕ at android.view.ViewRootImpl.setView(ViewRootImpl.java:797) 08-07 18:48:09.503 16494-16494/com.loocall.client W/System.err﹕ at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:288) 08-07 18:48:09.503 16494-16494/com.loocall.client W/System.err﹕ at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:73) 08-07 18:48:09.503 16494-16494/com.loocall.client W/System.err﹕ at android.app.Dialog.show(Dialog.java:285) 08-07 18:48:09.503 16494-16494/com.loocall.client W/System.err﹕ at org.xwalk.core.internal.XWalkResourceClientInternal.onReceivedLoadError(XWalkResourceClientInternal.java:201) 08-07 18:48:09.503 16494-16494/com.loocall.client W/System.err﹕ at org.xwalk.core.internal.XWalkContentsClientBridge.onReceivedError(XWalkContentsClientBridge.java:370) 08-07 18:48:09.503 16494-16494/com.loocall.client W/System.err﹕ at org.xwalk.core.internal.XWalkContentsClient$XWalkWebContentsObserver.didFailLoad(XWalkContentsClient.java:71) 08-07 18:48:09.503 16494-16494/com.loocall.client W/System.err﹕ at org.chromium.content.browser.webcontents.WebContentsObserverProxy.didFailLoad(WebContentsObserverProxy.java:99) 08-07 18:48:09.503 16494-16494/com.loocall.client W/System.err﹕ at org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method) 08-07 18:48:09.503 16494-16494/com.loocall.client W/System.err﹕ at org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:53) 08-07 18:48:09.503 16494-16494/com.loocall.client W/System.err﹕ at android.os.Handler.dispatchMessage(Handler.java:99) 08-07 18:48:09.513 16494-16494/com.loocall.client W/System.err﹕ at android.os.Looper.loop(Looper.java:137) 08-07 18:48:09.513 16494-16494/com.loocall.client W/System.err﹕ at android.app.ActivityThread.main(ActivityThread.java:5450) 08-07 18:48:09.513 16494-16494/com.loocall.client W/System.err﹕ at java.lang.reflect.Method.invokeNative(Native Method) 08-07 18:48:09.513 16494-16494/com.loocall.client W/System.err﹕ at java.lang.reflect.Method.invoke(Method.java:525) 08-07 18:48:09.513 16494-16494/com.loocall.client W/System.err﹕ at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1187) 08-07 18:48:09.513 16494-16494/com.loocall.client W/System.err﹕ at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003) 08-07 18:48:09.513 16494-16494/com.loocall.client W/System.err﹕ at dalvik.system.NativeStart.main(Native Method) anyone can tell me how to disable pull refresh?

    JIRA | 1 year ago | Xhacker
    android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
  3. 0

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

    GitHub | 3 years ago | mntgoat
    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

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

    GitHub | 3 years ago | banxi1988
    android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
  6. 0

    CrashManager.register() requires an Activity Context, not just any Context

    GitHub | 4 years ago | gregschlom
    java.lang.RuntimeException: Unable to resume activity {com.foo.app/com.foo.app.MyActivity}: android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
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.ViewRootImpl.setView()
  2. Android Platform
    Dialog.show
    1. android.view.ViewRootImpl.setView(ViewRootImpl.java:797)
    2. android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:288)
    3. android.view.WindowManagerImpl.addView(WindowManagerImpl.java:73)
    4. android.app.Dialog.show(Dialog.java:285)
    4 frames
  3. org.xwalk.core
    XWalkContentsClient$XWalkWebContentsObserver.didFailLoad
    1. org.xwalk.core.internal.XWalkResourceClientInternal.onReceivedLoadError(XWalkResourceClientInternal.java:201)
    2. org.xwalk.core.internal.XWalkContentsClientBridge.onReceivedError(XWalkContentsClientBridge.java:370)
    3. org.xwalk.core.internal.XWalkContentsClient$XWalkWebContentsObserver.didFailLoad(XWalkContentsClient.java:71)
    3 frames
  4. org.chromium.content
    WebContentsObserverProxy.didFailLoad
    1. org.chromium.content.browser.webcontents.WebContentsObserverProxy.didFailLoad(WebContentsObserverProxy.java:99)
    1 frame
  5. org.chromium.base
    SystemMessageHandler.handleMessage
    1. org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method)
    2. org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:53)
    2 frames
  6. Android Platform
    ActivityThread.main
    1. android.os.Handler.dispatchMessage(Handler.java:99)
    2. android.os.Looper.loop(Looper.java:137)
    3. android.app.ActivityThread.main(ActivityThread.java:5450)
    3 frames
  7. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:525)
    2 frames
  8. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1187)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
    2 frames
  9. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame