You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
android.view.WindowManager$BadTokenException: Unable to add window android.view.ViewRootImpl$W@480c247 -- permission denied for this window type
07-13 19:09:23.481 15732-15732/com.spoofer W/System.err: at android.view.ViewRootImpl.setView(ViewRootImpl.java:599)
07-13 19:09:23.481 15732-15732/com.spoofer W/System.err: at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:310)
07-13 19:09:23.481 15732-15732/com.spoofer W/System.err: at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:85)
07-13 19:09:23.481 15732-15732/com.spoofer W/System.err: at com.spoofer.dp_widget.lib.StandOutWindow.show(StandOutWindow.java:1113)
07-13 19:09:23.481 15732-15732/com.spoofer W/System.err: at com.spoofer.dp_widget.lib.StandOutWindow.onStartCommand(StandOutWindow.java:386)
07-13 19:09:23.481 15732-15732/com.spoofer W/System.err: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3028)
07-13 19:09:23.481 15732-15732/com.spoofer W/System.err: at android.app.ActivityThread.access$2200(ActivityThread.java:157)
The text was updated successfully, but these errors were encountered:
`/**
* code to post/handler request for permission
*/
public final static int REQUEST_CODE = 5463&0xffffff00;
public void checkDrawOverlayPermission() {
/** check if we already have permission to draw over other apps */
if (!Settings.canDrawOverlays(getApplicationContext())) {
/** if not construct intent to request permission */
Intent intent = new Intent(Settings.ACTION_MANAGE_OVERLAY_PERMISSION,
Uri.parse("package:" + getPackageName()));
/** request permission via start activity for result */
startActivityForResult(intent, REQUEST_CODE);
}
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
/** check if received result code
is equal our requested code for draw permission */
if (requestCode == REQUEST_CODE) {
// / ** if so check once again if we have permission */
if (Settings.canDrawOverlays(this)) {
StandOutWindow.closeAll(this, Dpad.class);
StandOutWindow.show(this, Dpad.class, StandOutWindow.DEFAULT_ID);
finish();
}
}
}`
Hey thank you for this library..
I am facing this issue at Android 6.
The text was updated successfully, but these errors were encountered: