waylife/DemoCollections

Android6.0.1 start service force close, permission denied for this window type.

Opened this issue · 0 comments

07-19 15:57:45.988: E/AndroidRuntime(22318): android.view.WindowManager$BadTokenException: Unable to add window android.view.ViewRootImpl$W@c884d33 -- permission denied for this window type
07-19 15:57:45.988: E/AndroidRuntime(22318): at android.view.ViewRootImpl.setView(ViewRootImpl.java:673)
07-19 15:57:45.988: E/AndroidRuntime(22318): at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:313)
07-19 15:57:45.988: E/AndroidRuntime(22318): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:86)
07-19 15:57:45.988: E/AndroidRuntime(22318): at com.zanlabs.viewdebughelper.MyWindowManager.createFloatWindow(MyWindowManager.java:55)
07-19 15:57:45.988: E/AndroidRuntime(22318): at com.zanlabs.viewdebughelper.service.FloatWindowService$RefreshTask$1.run(FloatWindowService.java:82)
07-19 15:57:45.988: E/AndroidRuntime(22318): at android.os.Handler.handleCallback(Handler.java:739)
07-19 15:57:45.988: E/AndroidRuntime(22318): at android.os.Handler.dispatchMessage(Handler.java:95)
07-19 15:57:45.988: E/AndroidRuntime(22318): at android.os.Looper.loop(Looper.java:148)
07-19 15:57:45.988: E/AndroidRuntime(22318): at android.app.ActivityThread.main(ActivityThread.java:5582)
07-19 15:57:45.988: E/AndroidRuntime(22318): at java.lang.reflect.Method.invoke(Native Method)
07-19 15:57:45.988: E/AndroidRuntime(22318): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
07-19 15:57:45.988: E/AndroidRuntime(22318): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)