![]() ![]() I have prefer this post for example but I got the error at adding viewgroup into the windowmanager object, I have used the same class for the Service as posted into the question with no change where I can mistake I didn’t gettting it WindowManager wm = (WindowManager) getSystemService(WINDOW_SERVICE) Įrror 09-27 18:49:23.561: ERROR/AndroidRuntime(653): Uncaught handler: thread main exiting due to uncaught exceptionĠ9-27 18:49:23.571: ERROR/AndroidRuntime(653): : Unable to create service : $BadTokenException: Unable to add window - permission denied for this window typeĠ9-27 18:49:23.571: ERROR/AndroidRuntime(653): at (ActivityThread.java:2790)Ġ9-27 18:49:23.571: ERROR/AndroidRuntime(653): at $3200(ActivityThread.java:119)Ġ9-27 18:49:23.571: ERROR/AndroidRuntime(653): at $H.handleMessage(ActivityThread.java:1917)Ġ9-27 18:49:23.571: ERROR/AndroidRuntime(653): at android.os.Handler.dispatchMessage(Handler.java:99)Ġ9-27 18:49:23.571: ERROR/AndroidRuntime(653): at android.os.Looper.loop(Looper.java:123)Ġ9-27 18:49:23.571: ERROR/AndroidRuntime(653): at (ActivityThread.java:4363)Ġ9-27 18:49:23.571: ERROR/AndroidRuntime(653): at .invokeNative(Native Method)Ġ9-27 18:49:23.571: ERROR/AndroidRuntime(653): at .invoke(Method.java:521)Ġ9-27 18:49:23.571: ERROR/AndroidRuntime(653): at .ZygoteInit$n(ZygoteInit.java:860)Ġ9-27 18:49:23.571: ERROR/AndroidRuntime(653): at .ZygoteInit.main(ZygoteInit.java:618)Ġ9-27 18:49:23.571: ERROR/AndroidRuntime(653): at (Native Method)Ġ9-27 18:49:23.571: ERROR/AndroidRuntime(653): Caused by: $BadTokenException: Unable to add window - permission denied for this window typeĠ9-27 18:49:23.571: ERROR/AndroidRuntime(653): at (ViewRoot.java:492)Ġ9-27 18:49:23.571: ERROR/AndroidRuntime(653): at (WindowManagerImpl.java:177)Ġ9-27 18:49:23.571: ERROR/AndroidRuntime(653): at (WindowManagerImpl.java:91)Ġ9-27 18:49:23.571: ERROR/AndroidRuntime(653): at .onCreate(HUD.java:41)Ġ9-27 18:49:23.571: ERROR/AndroidRuntime(653): at (ActivityThread.java:2780)Ġ9-27 18:49:23.571: ERROR/AndroidRuntime(653). 06-15 15:15:25.643 2856 2895 E libc : Access denied finding property. Welcome to B4X forum B4X is a set of simple and powerful cross platform RAD tools: B4A (free) - Android development B4J (free) - Desktop and Server development B4i - iOS development B4R (free) - Arduino, ESP8266 and ESP32 development All developers, with any skill level, are welcome to join the B4X community.
0 Comments
Leave a Reply. |