Android verhindern Screenshot in der Aktivität

import android.view.WindowManager.LayoutParams

override fun onCreate(savedInstanceState: Bundle?) {
	// ...
	window.setFlags(LayoutParams.FLAG_SECURE, LayoutParams.FLAG_SECURE)
    // ...
}
Ali G