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.

  • 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
    ,
  • The galaxy s3 wont take picture
    via Stack Overflow by gabrjan
    ,
  • Can't get QuickAction to load
    via Stack Overflow by StephanM
    ,
    • android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running? at android.view.ViewRootImpl.setView(ViewRootImpl.java:646) at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:248) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:69) at android.widget.PopupWindow.invokePopup(PopupWindow.java:993) at android.widget.PopupWindow.showAtLocation(PopupWindow.java:847) at android.widget.PopupWindow.showAtLocation(PopupWindow.java:811) at com.example.solaceap.Login$5.run(Login.java:135) at android.app.Activity.runOnUiThread(Activity.java:4662) at com.example.solaceap.Login.init_conn_lost_popup(Login.java:119) at com.example.solaceap.Login$6$1.run(Login.java:281)

    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