I'm making a custom lock screen. I have used the following flags for my activity.
FLAG_DISMISS_KEYGUARD
FLAG_SHOW_WHEN_LOCKED
So when I unlock my lockscreen, the keyguard still shows if you have a code on your phone.
Now I want to be able to open another app from my lockscreen which should also show in front of the keyguard. When this app is closed, the keyguard should show again so you can't access the rest of the phone without entering the code.
Is there a way to pass these flags to the new activity? Or any other way to make the new activity appear in front of keyguard?