android.view.WindowManager$BadTokenException: Unable to add window -- token android.view.ViewRootImpl$W@424c2b38 is not valid; is your activity running?

Stack Overflow | Rahul | 5 months ago
  1. 0

    App crashes when adding AutoCompleteTextView in PopupWindow?

    Stack Overflow | 5 months ago | Rahul
    android.view.WindowManager$BadTokenException: Unable to add window -- token android.view.ViewRootImpl$W@424c2b38 is not valid; is your activity running?
  2. 0

    In Fatal Exception (Unable to add window) : What does "input channel is not allowed" mean?

    Stack Overflow | 11 months ago | Mann
    android.view.WindowManager$BadTokenException: Unable to add window android.view.ViewRootImpl$W@412b2fb0 -- input channel is not allowed
  3. 0

    Strange crash logs when use mopub library

    GitHub | 3 years ago | omihaz
    android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@41e6d0d8 is not valid; is your activity running?
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    系统dialog 弹出的sina登录和注册和窗口,使用getContext().getApplicationContext(),在注册页面出现错误

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

    Populating spinner directly in the layout xml Error

    Stack Overflow | 3 years ago | zit
    android.view.WindowManager$BadTokenException: Unable to add window -- token android.view.ViewRootImpl$W@417634b8 is not valid; is your activity running?

  1. syntech16 1 times, last 7 months ago
  2. cesarnog 1 times, last 2 months ago
  3. brunosatriani 10 times, last 5 months ago
  4. jk 25 times, last 4 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 android.view.ViewRootImpl$W@424c2b38 is not valid; is your activity running?

    at android.view.ViewRootImpl.setView()
  2. Android Platform
    ActivityThread.main
    1. android.view.ViewRootImpl.setView(ViewRootImpl.java:706)
    2. android.view.WindowManagerImpl.addView(WindowManagerImpl.java:356)
    3. android.view.WindowManagerImpl.addView(WindowManagerImpl.java:234)
    4. android.view.WindowManagerImpl$CompatModeWrapper.addView(WindowManagerImpl.java:153)
    5. android.view.Window$LocalWindowManager.addView(Window.java:559)
    6. android.widget.PopupWindow.invokePopup(PopupWindow.java:1013)
    7. android.widget.PopupWindow.showAsDropDown(PopupWindow.java:922)
    8. android.widget.ListPopupWindow.show(ListPopupWindow.java:595)
    9. android.widget.AutoCompleteTextView.showDropDown(AutoCompleteTextView.java:1093)
    10. android.widget.AutoCompleteTextView.updateDropDownForFilter(AutoCompleteTextView.java:956)
    11. android.widget.AutoCompleteTextView.onFilterComplete(AutoCompleteTextView.java:938)
    12. android.widget.Filter$ResultsHandler.handleMessage(Filter.java:285)
    13. android.os.Handler.dispatchMessage(Handler.java:99)
    14. android.os.Looper.loop(Looper.java:137)
    15. android.app.ActivityThread.main(ActivityThread.java:4921)
    15 frames
  3. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:511)
    2 frames
  4. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
    2 frames
  5. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame