How to prevent screen capturing in Android
Prevent screen capturing is way for saving your content. Android SDK have special flag for it. https://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#FLAG_SECURE Just declare it in your Activity like this: @Override protected void onCreate(Bundle savedInstanceState) { getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE); super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); ….. } And user will see next message when try make screenshot:



![Build native libs for LatinIME. Error: base class 'class latinime::NgramListener' should be explicitly initialized in the copy constructor [-Werror=extra]](https://www.hrupin.com/wp-content/uploads/2016/11/build-native-libs-for-latinime-error-base-class-class-latinimengramlistener-should-be-expl.jpg)





