[英]Background application UI has to become blurred when the user sends the foreground app to background by pressing the device home button
User sends current running application in android device to background and when try to see all background application in device user should not able to see content of the background application. 用户将android设备中当前正在运行的应用程序发送到后台,并且当尝试查看设备中的所有后台应用程序时,用户应该看不到后台应用程序的内容。 instead of that user has to see either blurred or blank screen and on tap it when application comes on foreground user can able to see actual content. 而不是该用户必须看到模糊屏幕或空白屏幕,然后在应用程序启动时点击它,用户便可以看到实际内容。
Set this in onCreate
method between super.onCreate(savedInstanceState)
and setContentView
: 在super.onCreate(savedInstanceState)
和setContentView
之间的onCreate
方法中进行设置:
// White image on recent apps overview and disable screenshot functionality
window.setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.