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

Android - Using KeyStore to encrypt and decrypt the data

Stack and Queue

Java Reflection API