Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
Prevent screenshots in Android — Gideros Forum

Prevent screenshots in Android

johnyc100johnyc100 Member
edited August 2014 in General questions
I have an Android APP I would like to prevent users from taking any screenshots. No screenshots allowed.

I found this code below from stackflow that uses Flag_Secure but not sure how to implement this within Gideros or through Eclipse.

Any ideas or suggestions appreciated
thanks

public class FlagSecureTestActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

getWindow().setFlags(LayoutParams.FLAG_SECURE,
LayoutParams.FLAG_SECURE);

setContentView(R.layout.main);
}
}

Comments

Sign In or Register to comment.