Keep activity running over screen lock when the screens alseep
===

So i built an app that functions as a lock screen replacement. I use a broadcast receiver and a service to start my activity after `Intent.ACTION_SCREEN_OFF`. So that every time the user locks the screen my activity starts, then when they press the unlock button my activity is already running over the lock screen. But this only works if the user tries to wake up/unlock the phone after a short amount of time. If they wait too long the activity has vanished. I'm not sure why this is happening and what I can do to keep the activity there no matter how long the user waits to try to unlock their phone.