overlay

How to check, detect or identify the settings component screen overlay or any feature available or not

断了今生、忘了曾经 提交于 2020-12-07 08:15:40
问题 My android app need display over other app permission which is screen overlay permission. Settings.ACTION_MANAGE_OVERLAY_PERMISSION SYSTEM_ALERT_WINDOW In normal android OS device i can give permission easily using this code. if (!Settings.canDrawOverlays(this) && !Constant.IsOverlayPermissionGiven) { Intent intent = new Intent(Settings.ACTION_MANAGE_OVERLAY_PERMISSION, Uri.parse("package:" + getPackageName())); intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); intent.setFlags(Intent.FLAG

How do I make a glass window?

一世执手 提交于 2020-06-29 03:56:06
问题 My goal is to create a glass window. I don't know if it has another name, but I'll try to describe precisely what I want to archive. This window would be empty (full transparency), at the foreground, and the user could click through and do his stuff like always. Like a literal glass between the screen and the user. My final goal is make that old prank where someone get surprised by a image flashing out of nowhere. I looked upon SFML, QT, Pygame, some Java things, but couldn't find a way. I