Android - Disable Screen Capture

protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    // To disable user from taking the screen shot of the activity
    getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE,
            WindowManager.LayoutParams.FLAG_SECURE);
}


Comments

Popular posts from this blog

Stack and Queue

Merge 2 Arrays

Java Concepts