简体   繁体   English

当用户通过按下设备主屏幕按钮将前台应用发送到后台时,后台应用UI必须变得模糊

[英]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.

相关问题 当应用程序在后台时,检测设备上的用户交互 - Detect user interactions on device when the application is in the background 当应用程序在 android 中从后台转到前台时如何重新启动应用程序? - How to relaunch application when app went to background to foreground in android? android MVVM结构中app state从后台变成前台时如何调用API - How to call API when app state become foreground from background in android MVVM structure 用户按下主页按钮时Android检查应用是否达到了后台? - Android check whether app reached background when user pressed Home Button? 必须在后台运行并将其推向前台的应用 - App that has to work in background and push itself to foreground 按下主屏幕按钮时应用程序关闭 - App closes when pressing home button 识别android应用程序何时在backGround中运行-按下Home按钮 - Identifying when android Application is running in backGround - Home button press 按下电源按钮时在后台发送短信 - Sends SMS in Background when Power Button is pressed 当应用程序从主页按钮转到后台时,LifetimeChanged事件不会触发 - LifetimeChanged event not firing when app goes background from Home button 将应用程序发送到后台时启动通知/使用HOME按钮最小化 - Start notification when app is sent to background/minimize with HOME button
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM