android.view.WindowManager$BadTokenException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • GitHub comment 30#273444924
    via GitHub by jehy
    ,
  • Display popup on start of activity
    via Stack Overflow by Zac Powell
    ,
  • how to show popup window in my main window?
    via Stack Overflow by ganesh
    ,
  • Android PopupWindow wont open properly
    via Stack Overflow by RenegadeAndy
    ,
    • android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running? at android.view.ViewRootImpl.setView(ViewRootImpl.java:849) at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:337) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91) at android.widget.PopupWindow.invokePopup(PopupWindow.java:1329) at android.widget.PopupWindow.showAtLocation(PopupWindow.java:1077) at android.widget.PopupWindow.showAtLocation(PopupWindow.java:1035) at com.android.internal.widget.FloatingToolbar$FloatingToolbarPopup.show(FloatingToolbar.java:563) at com.android.internal.widget.FloatingToolbar.show(FloatingToolbar.java:214) at com.android.internal.view.FloatingActionMode$FloatingToolbarVisibilityHelper.updateToolbarVisibility(FloatingActionMode.java:411) at com.android.internal.view.FloatingActionMode$1.run(FloatingActionMode.java:65) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:158) at android.app.ActivityThread.main(ActivityThread.java:7229) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

    Users with the same issue

    Adrien
    1 times, last one,
    Unknown visitor1 times, last one,
    jk
    4 times, last one,
    Stefan Braune
    1 times, last one,
    Unknown visitor1 times, last one,
    52 more bugmates