Maybe Found the solución here:
https://www.b4x.com/android/forum/threads/disable-screen-capture-functionality.35753/
I go to try.
I confirmed this solution work on my device. Just Insert this code starting the Activity_Create
Sub Activity_Create(FirstTime As Boolean)
#If Java
import android.annotation.TargetApi;
import android.content.Context;
import android.view.WindowManager.*;
public void _onCreate() {
this.getWindow().setFlags(LayoutParams.FLAG_SECURE, LayoutParams.FLAG_SECURE);
}
#End If
When I try to capture, show a message saying Can't capture, maybe memory is full.
Or something like that.
I love B4A! And B4X Forum