android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running?

Stack Overflow | Pavel | 2 months ago
  1. 0

    BadTokenException - Unable to add window

    Stack Overflow | 2 months ago | Pavel
    android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running?
  2. 0

    Activity is closed when AsyncTask is using a widget

    Stack Overflow | 5 years ago | Emerald214
    android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running?
  3. 0

    Not open list autotextcompleteview

    Stack Overflow | 2 years ago | Artem Shevchenko
    android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running?
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    hemant malik - Google+

    google.com | 1 year ago
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android2014.tubeclient/com.android2014.component.MainActivity}: android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running?
  6. 0

    Android SearchView AutocompleteTextView showdropdown BadTokenException

    Stack Overflow | 7 months ago | Mohammad Rajob
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.nybsys.tillbox/com.nybsys.tillbox.sales.MainActivity}: android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running?

    2 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 null is not valid; is your activity running?

      at android.view.ViewRootImpl.setView()
    2. Android Platform
      AutoCompleteTextView.showDropDown
      1. android.view.ViewRootImpl.setView(ViewRootImpl.java:678)
      2. android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:279)
      3. android.view.WindowManagerImpl.addView(WindowManagerImpl.java:69)
      4. android.widget.PopupWindow.invokePopup(PopupWindow.java:1070)
      5. android.widget.PopupWindow.showAsDropDown(PopupWindow.java:970)
      6. android.widget.ListPopupWindow.show(ListPopupWindow.java:644)
      7. android.widget.AutoCompleteTextView.showDropDown(AutoCompleteTextView.java:1114)
      7 frames
    3. mono.android.text
      TextWatcherImplementor.afterTextChanged
      1. mono.android.text.TextWatcherImplementor.n_afterTextChanged(Native Method)
      2. mono.android.text.TextWatcherImplementor.afterTextChanged(TextWatcherImplementor.java:33)
      2 frames
    4. Android Platform
      View.restoreHierarchyState
      1. android.widget.TextView.sendAfterTextChanged(TextView.java:7947)
      2. android.widget.TextView.setText(TextView.java:4084)
      3. android.widget.TextView.setText(TextView.java:3933)
      4. android.widget.EditText.setText(EditText.java:91)
      5. android.widget.TextView.setText(TextView.java:3908)
      6. android.widget.TextView.onRestoreInstanceState(TextView.java:3808)
      7. android.view.View.dispatchRestoreInstanceState(View.java:13795)
      8. android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3022)
      9. android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3022)
      10. android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3022)
      11. android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3022)
      12. android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3022)
      13. android.view.View.restoreHierarchyState(View.java:13773)
      13 frames
    5. Android Support v4
      FragmentActivity.onStart
      1. android.support.v4.app.Fragment.restoreViewState(Fragment.java:465)
      2. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1094)
      3. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1252)
      4. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1234)
      5. android.support.v4.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:2046)
      6. android.support.v4.app.FragmentController.dispatchActivityCreated(FragmentController.java:174)
      7. android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:597)
      7 frames
    6. Android Platform
      ActivityThread.main
      1. android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1228)
      2. android.app.Activity.performStart(Activity.java:5987)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2423)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2522)
      5. android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4118)
      6. android.app.ActivityThread.access$900(ActivityThread.java:167)
      7. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1423)
      8. android.os.Handler.dispatchMessage(Handler.java:111)
      9. android.os.Looper.loop(Looper.java:194)
      10. android.app.ActivityThread.main(ActivityThread.java:5534)
      10 frames
    7. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    8. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:955)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:750)
      2 frames