禁用android的芯片截图 [英] Disable screenshots in android ics

查看:145
本文介绍了禁用android的芯片截图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于我们的安全的应用程序之一,有一个要求禁止截屏功能在Android的ICS应用程序。这是一个无根的设备上可能吗?
谢谢,
Rajath

For one of our secure apps, there is a requirement to disable the screenshot capability for the app in Android ICS. Is this possible on a non-rooted device?
Thanks,
Rajath

推荐答案

在你的活动课你为什么不加入这一行。这将这样的伎俩。

Why don't you add this line in your activity class. This will do the trick.

// This disables screen shot to be taken for current activity
getWindow().setFlags(LayoutParams.FLAG_SECURE, LayoutParams.FLAG_SECURE);

您可能需要看看马克·墨菲的博客文章

这篇关于禁用android的芯片截图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆