ScreenCapture
ScreenCapture copied to clipboard
java.lang.RuntimeException:
java.lang.RuntimeException: Unable to create service com.branch.www.screencapture.FloatWindowsService: android.view.WindowManager$BadTokenException: Unable to add window android.view.ViewRootImpl$W@92f423f -- permission denied for window type 2003 at android.app.ActivityThread.handleCreateService(ActivityThread.java:3544) at android.app.ActivityThread.access$1300(ActivityThread.java:199) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1666) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6669) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) Caused by: android.view.WindowManager$BadTokenException: Unable to add window android.view.ViewRootImpl$W@92f423f -- permission denied for window type 2003 at android.view.ViewRootImpl.setView(ViewRootImpl.java:822) at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:356) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:93) at com.branch.www.screencapture.FloatWindowsService.createFloatView(FloatWindowsService.java:122) at com.branch.www.screencapture.FloatWindowsService.onCreate(FloatWindowsService.java:79) at android.app.ActivityThread.handleCreateService(ActivityThread.java:3532) at android.app.ActivityThread.access$1300(ActivityThread.java:199) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1666) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6669) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)