Android Question Unlock password protected screen and show document?

johnnyv

Member
Licensed User
Longtime User
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
 

johnnyv

Member
Licensed User
Longtime User
I figured it wasn't possible to obtain a reference to that activity and set the flag for it. Thanks Erel.
 
Upvote 0
Top