Detect an app-level pause in Android