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

Stack Overflow | Rahul | 10 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

    App crashes when adding AutoCompleteTextView in PopupWindow?

    Stack Overflow | 10 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 | 1 year 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 | 3 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 12 months ago
  2. Indri Yunita 4 times, last 7 days ago
  3. cesarnog 1 times, last 6 months ago
  4. brunosatriani 10 times, last 9 months ago
  5. jk 25 times, last 9 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