android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@11ff97a3 is not valid; is your activity running?

gitlab.com | 2 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola . Or join the community to write better ones.
  1. 0

    BadTokenException crash (#565) · Issues · F-Droid / Client · GitLab

    gitlab.com | 2 months ago
    android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@11ff97a3 is not valid; is your activity running?
  2. 0

    i have implemented a method for on click popup menu but my app is crashing on run time

    Stack Overflow | 11 months ago | shiv
    android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running?
  3. 0
    samebug tip
    Check if you imported android.support.v4.app.FragmentManager and not android.app.FragmentManager. Check for naming problems in your xml files as well, might have inconsistencies!
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    Also, check if you're not using android.support.v4.app.FragmentTransaction with android.app.Fragment, as they're not totally compatible.
  6. 0

    Gett BadToken Exception

    GitHub | 2 years ago | vbisbest
    android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@20c1c1b1 is not valid; is your activity running?
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.os.BinderProxy@11ff97a3 is not valid; is your activity running?

    at android.view.ViewRootImpl.setView()
  2. Android Platform
    Dialog.show
    1. android.view.ViewRootImpl.setView(ViewRootImpl.java:562)
    2. android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:282)
    3. android.view.WindowManagerImpl.addView(WindowManagerImpl.java:85)
    4. android.app.Dialog.show(Dialog.java:298)
    4 frames
  3. org.fdroid.fdroid
    AppDetails$AppDetailsListFragment.onListItemClick
    1. org.fdroid.fdroid.AppDetails.install(AppDetails.java:840)
    2. org.fdroid.fdroid.AppDetails$AppDetailsListFragment.install(AppDetails.java:1657)
    3. org.fdroid.fdroid.AppDetails$AppDetailsListFragment.onListItemClick(AppDetails.java:1721)
    3 frames
  4. Android Support v4
    ListFragment$2.onItemClick
    1. android.support.v4.app.ListFragment$2.onItemClick(ListFragment.java:58)
    1 frame
  5. Android Platform
    ActivityThread.main
    1. android.widget.AdapterView.performItemClick(AdapterView.java:305)
    2. android.widget.AbsListView.performItemClick(AbsListView.java:1148)
    3. android.widget.AbsListView$PerformClick.run(AbsListView.java:3059)
    4. android.widget.AbsListView$3.run(AbsListView.java:3866)
    5. android.os.Handler.handleCallback(Handler.java:739)
    6. android.os.Handler.dispatchMessage(Handler.java:95)
    7. android.os.Looper.loop(Looper.java:135)
    8. android.app.ActivityThread.main(ActivityThread.java:5300)
    8 frames
  6. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  7. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
    2 frames
  8. XposedBridge
    XposedBridge.main
    1. de.robv.android.xposed.XposedBridge.main(XposedBridge.java:114)
    1 frame