I am trying to display a document using an intent when the screen is locked and password protected. I can successfully display my activity over the locked screen using the code below, but when I launch the intent to view a file, it gets hidden behind the lock screen. Am I attempting the impossible?
B4X:
Sub SetShowWhenLocked
Dim r As Reflector
r.Target = r.GetActivity
r.Target = r.RunMethod("getWindow")
r.RunMethod2("addFlags", 6815872, "java.lang.int")
End Sub