Is there a way to completely block the ability to take screenshots in Android? -


i'm developing light-weight application in 1 part of app take away ability take screenshot in android. when screenshot, i'm talking iphone's "screen capture" feature. security reasons. realize there apps out there allow users in android well, , want block functionality. way of doing fine, whether disabling hardware buttons, freezing phone, or via software.

you can use window layoutparam flag_secure. add oncreate method:

if(android.os.build.version.sdk_int >= android.os.build.version_codes.honeycomb) {     getwindow().setflags(windowmanager.layoutparams.flag_secure, windowmanager.layoutparams.flag_secure); } 

more on topic can found here.