I\'ve tried window.setflags(windowmanagerflags.secure, windowmanagerflags.secure) it\'s working for some devices if we use screen recording software but if we start
window.setflags(windowmanagerflags.secure, windowmanagerflags.secure)