禁用android的芯片截图截图、芯片、android

由网友(彼岸花ゃ葬礼)分享简介:对于我们的安全的应用程序之一,有一个要求禁止截屏功能在Android的ICS应用程序。这是一个无根的设备上可能吗?谢谢,Rajath For one of our secure apps, there is a requirement to disable the screenshot capability fo...

对于我们的安全的应用程序之一,有一个要求禁止截屏功能在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);

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

阅读全文

相关推荐

最新文章