I hope it exists.
I would like to store the time when the application loses focus and then check if it has lost focus for more than n-minutes to bring up a lock.
Seeing how an application is composed of activities, I think there will not be a direct equivalent. How would I be able to achieve similar results?
EDIT
I tried to extend the Application class to registerActivityLifecycleCallbacks() and realized I will not be able to use this approach because it is only available in API Level 14+
Allow me to share how I made a backwards compatible solution.
I had already implemented the locking of my app on launch if there was a passcode associated with the account. To be complete, I needed to handle situations where other applications (including the home activity) take over for n-minutes.
I ended up making a BaseActivity that all my Activities extend.
If you are going to use this solution and have trouble implementing the equivalent of my DataOperations class, please comment and I can post the necessary code.