即使我启动其他应用活动,如何防止Android获取屏幕截图

时间:2016-12-13 10:07:33

标签: android security

我的应用存在安全问题,我们希望其他人无法通过最近的应用列表看到屏幕截图。将LayoutParams.FLAG_SECURE设置为Window很容易。但是,如果我启动任何其他应用程序活动,它将失败。有没有人对如何修复它?

2 个答案:

答案 0 :(得分:0)

我有一个可能对您有帮助的想法,您是否尝试在public static Dictionary<string, IEnumerable<CoreDictionaryResource>> DictionaryResourcesCache { get { return (Dictionary<string, IEnumerable<CoreDictionaryResource>>)HttpContext.Current.Cache(string.Concat(_Dictionary, DictionaryID, CultureID)); } set { HttpContext.Current.Cache(string.Concat(_Dictionary, DictionaryID, CultureID)) = value; } } 或至少更改其内容时隐藏重要视图

答案 1 :(得分:0)

不,您无法阻止ActivityManager截取没有将Window标志设置为WindowManager.LayoutParams.FLAG_SECURE的其他活动的屏幕截图。

如果您的应用与安全性有关,您可以将此标记应用于您不想在最近显示屏幕截图的所有活动窗口。