Hello I am using this code provided by Erel in 2012, which is to show an activity above the lock screen, in Android 8 it works fine but in Android 10 the Activity is not displayed, this Activity is called from a service, it which is difficult for me to debug.
SetShowWhenLocked:
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Layout")
SetShowWhenLocked
End Sub
Sub SetShowWhenLocked
Dim r As Reflector
r.Target = r.GetActivity
r.Target = r.RunMethod("getWindow")
r.RunMethod2("addFlags", 6815872, "java.lang.int")
End Sub
Any suggestions, currently how do you show an Activity per th of the lock screen.?