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.

  • BadTokenException - Unable to add window
    via Stack Overflow by Pavel
    ,
  • Not open list autotextcompleteview
    via Stack Overflow by Artem Shevchenko
    ,
  • hemant malik - Google+
    via by Unknown author,
  • GitHub comment 718#168185028
    via GitHub by thestinger
    ,
    • android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running? at android.view.ViewRootImpl.setView(ViewRootImpl.java:678) at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:279) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:69) at android.widget.PopupWindow.invokePopup(PopupWindow.java:1070) at android.widget.PopupWindow.showAsDropDown(PopupWindow.java:970) at android.widget.ListPopupWindow.show(ListPopupWindow.java:644) at android.widget.AutoCompleteTextView.showDropDown(AutoCompleteTextView.java:1114) at mono.android.text.TextWatcherImplementor.n_afterTextChanged(Native Method) at mono.android.text.TextWatcherImplementor.afterTextChanged(TextWatcherImplementor.java:33) at android.widget.TextView.sendAfterTextChanged(TextView.java:7947) at android.widget.TextView.setText(TextView.java:4084) at android.widget.TextView.setText(TextView.java:3933) at android.widget.EditText.setText(EditText.java:91) at android.widget.TextView.setText(TextView.java:3908) at android.widget.TextView.onRestoreInstanceState(TextView.java:3808) at android.view.View.dispatchRestoreInstanceState(View.java:13795) at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3022) at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3022) at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3022) at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3022) at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3022) at android.view.View.restoreHierarchyState(View.java:13773) at android.support.v4.app.Fragment.restoreViewState(Fragment.java:465) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1094) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1252) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1234) at android.support.v4.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:2046) at android.support.v4.app.FragmentController.dispatchActivityCreated(FragmentController.java:174) at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:597) at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1228) at android.app.Activity.performStart(Activity.java:5987) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2423) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2522) at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4118) at android.app.ActivityThread.access$900(ActivityThread.java:167) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1423) at android.os.Handler.dispatchMessage(Handler.java:111) at android.os.Looper.loop(Looper.java:194) at android.app.ActivityThread.main(ActivityThread.java:5534) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:955) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:750)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown User
    6 times, last one,
    Indri Yunita
    4 times, last one,
    filpgame
    2 times, last one,
    52 more bugmates