Class for detecting and eventing the foreground/background state of an Android app - API-level 14+