I see a lot of answers concerning the Activity Lifecycle and that for most part is clear to me. What I'm looking for is the Application Lifecycle. I have the following case:
- Application starts - Invalidate PIN
- A PIN has to be entered if it is stale of invalid
- Application is backgrounded (Android Home screen is visible) - Invalidate PIN
- The applicatiion is foregrounded (App becomes visible again) - goto step 2
With the Activity Lifecycle it is hard if not impossible to achieve. Any suggestions?