How can I detect that an app has just returned from "background mode"? I mean, I don't want my app to fetch data (each 60 sec) when the user press the "home button". But, I'd like to make some "special" update the first time the app is in foreground mode.
How can I detect these two events:
- app going to background mode
- app going to foreground mode
Thanks in advance.
François