I'd like to detect when my application becomes paused (For example when the user press the home button or starts another application).
Some applications detect that situation and show a notification like: "The application .... is running in background". I need to do the same but for saving some objects in the database.
Thanks in advance