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

Remove duplicate characters from a string using LinkedHashSet

Java Concepts

Merge 2 Arrays