I am trying to develop a custom "lock screen".
The main issue I am facing is that the user can actually always exit my "lock screen" Activity simply by pressing the HOME button.
I know it is not possible to block or override HOME. I was wondering if there is a way to restart the same Activity when the user presses HOME.
I have tried to restart the activity from the onPause()
, indeed the Activity restarts, but it takes some seconds to restart, so the "lock screen" is pointless.
Is there some way to restart the Activity immediately after Home is pressed?