android.view.WindowManager$BadTokenException

Unable to add window android.view.ViewRootImpl$W@3387043 -- permission denied for this window type

Solutions on the web792

  • Unable to add window android.view.ViewRootImpl$W@3387043 -- permission denied for this window type
  • via GitHub by nicosaki
    , 11 months ago
    Unable to add window android.view.ViewRootImpl$W@9c361db -- permission denied for this window type
  • via GitHub by lwj1994
    , 7 months ago
    Unable to add window android.view.ViewRootImpl$W@7bf9d72 -- permission denied for this window type
  • Stack trace

    • android.view.WindowManager$BadTokenException: Unable to add window android.view.ViewRootImpl$W@3387043 -- permission denied for this window type at android.view.ViewRootImpl.setView(ViewRootImpl.java:598) at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:310) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:86) at android.app.Dialog.show(Dialog.java:319) at com.example.hello.fragment.ExploreFragment.exploreBeers(ExploreFragment.java:255) at com.example.hello.fragment.ExploreFragment$4.onEditorAction(ExploreFragment.java:203) at android.widget.TextView.onEditorAction(TextView.java:4773) at com.android.internal.widget.EditableInputConnection.performEditorAction(EditableInputConnection.java:139) at com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:304) at com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage(IInputConnectionWrapper.java:78) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:152) at android.app.ActivityThread.main(ActivityThread.java:5497) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    2 times, 4 months ago
    Unknown user
    Once, 7 months ago
    2 times, 9 months ago
    Unknown user
    Once, 9 months ago
    2 times, 11 months ago
    52 more bugmates