简体   繁体   English

Android背景屏幕缓存

[英]Android background Screen Caching

Is there anyway to achieve background screen caching in android?In one my applications , we need to achieve this for security purposes. 在Android中是否有实现后台屏幕缓存的方法?在我的一个应用程序中,出于安全目的,我们需要实现这一点。 Question may look simple but I am new to Android. 问题看起来很简单,但我是Android的新手。 Please help. 请帮忙。

The following link explains to do so in iOS. 以下链接说明了如何在iOS中执行此操作。

https://www.virtuesecurity.com/blog/ios-background-screen-caching/ https://www.virtuesecurity.com/blog/ios-background-screen-caching/

You can just override the onPause() method and for example hide sensitive information. 您可以重写onPause()方法,例如隐藏敏感信息。 The onPause method is called right before the activity goes to background. 在活动进入后台之前,将调用onPause方法。

We tried to put custom image when app goes to background by using method onCreateThumbnail() as per documentation, this method will get invoked when app goes in background but it is never happened and there is open issue regarding the same https://code.google.com/p/android/issues/detail?id=29370 . 我们尝试根据文档使用onCreateThumbnail()方法将应用程序在后台运行时放置自定义图像,当应用程序在后台运行时将调用此方法,但从未发生过,并且关于同一https:// code的问题还存在。 google.com/p/android/issues/detail?id=29370 We have to use FLAG.SECURE and we have this already implemented. 我们必须使用FLAG.SECURE,并且已经实现了它。

Link1: How do I prevent Android taking a screenshot when my app goes to the background? Link1: 当我的应用程序进入后台时,如何防止Android截屏?

Link2: How to change the snapshot shown by recent apps list? Link2: 如何更改最近的应用程序列表显示的快照?

Bot none of them worked for me.! Bot他们都不为我工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM