Created
May 25, 2021 21:31
-
-
Save yoosinpaddy/ca744ad4d1371ae49d05181fe2cd1d64 to your computer and use it in GitHub Desktop.
prevent screenshot in android app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE,WindowManager.LayoutParams.FLAG_SECURE); | |
//add this code in the oncreate of an activity before set content view |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment