2012-02-13 75 views
0

如何從冰淇淋三明治android設備中的應用程序禁用屏幕截圖功能?任何幫助,將不勝感激。android中的屏幕截圖功能

+0

手段看一下嗎?您想要爲您的應用禁用默認屏幕截圖功能。對 ?? – 2012-02-13 07:46:09

+0

是的..我需要爲特定的應用程序禁用此功能。 – Kris 2012-02-13 08:30:16

回答

0

爲什麼不在活動課程中添加此行。這將做到這一點。

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

您可能要對這個Link