android.view.WindowManager$BadTokenException

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

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web529

  • via Stack Overflow by Amir
    ,
  • via GitHub by fayazara
    ,
  • Stack trace

    • android.view.WindowManager$BadTokenException: Unable to add window android.view.ViewRootImpl$W@2d54966 -- permission denied for this window type at android.view.ViewRootImpl.setView(ViewRootImpl.java:875) at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:337) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91) at com.txusballesteros.bubbles.BubblesService$2.run(BubblesService.java:120) 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(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

    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

    Unknown visitor
    Unknown visitorOnce,
    Unknown UserUnknown User
    6 times, last one
    martynmartyn
    4 times, last one
    Indri YunitaIndri Yunita
    4 times, last one
    filpgamefilpgame
    2 times, last one
    52 more bugmates