Hi, I have this bit of inline java to block screenshots:
B4X:
Sub Activity_Create(FirstTime As Boolean)
' Block screenshots
#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
...
It used to work perfectly, but since I changed to AppCompat theme (I added the libs AppCompat and DesignSupport) it throws an error at compile time. Actually, I cannot use any inline java: