This library simulates Application-level onPause() and onResume() life cycle events. But, what does that actually mean? For the purposes of this library, the following definitions apply: An app is considered to be paused when the app is no longer visible to the user. By definition, this means that when an app is paused, none of the Activitys that belong to the app are visible to the user.
SDK for Android
Updated sample app to demonstrate real world usage. It now runs an HTTP server. The server runs as long as the app is resumed. Once the app pauses, the HTTP server is stopped.