I have to know when my app comes back to the foreground in these situations:
- Start app
- Start Activity A
- Home Pressed
App brought to foreground by user. (Activity A is shown)
Start app
- Start Activity A
- Start Activity B
- Home Pressed
- App brought to foreground by user. (Activity B is shown)
I cannot check this with a flag in onResume
and onPause
. Because this would trigger every time Activity B
is loaded.