{"source":"semconv","version":"1.44.0","attribute":{"id":"android.app.state","type":"enum","enumMembers":[{"id":"created","value":"created","stability":"development","brief":"Any time before Activity.onResume() or, if the app has no Activity, Context.startService() has been called in the app for the first time."},{"id":"background","value":"background","stability":"development","brief":"Any time after Activity.onPause() or, if the app has no Activity, Context.stopService() has been called when the app was in the foreground state."},{"id":"foreground","value":"foreground","stability":"development","brief":"Any time after Activity.onResume() or, if the app has no Activity, Context.startService() has been called when the app was in either the created or background states."}],"stability":"development","brief":"This attribute represents the state of the application.","note":"The Android lifecycle states are defined in [Activity lifecycle callbacks](https://developer.android.com/guide/components/activities/activity-lifecycle#lifecycle-callbacks), and from which the `OS identifiers` are derived.","examples":["created"],"namespace":"android","definedIn":"model/android/registry.yaml","usedBy":[{"groupId":"event.device.app.lifecycle","groupType":"event","signalName":"device.app.lifecycle","requirementLevel":"conditionally_required"}]},"history":[{"version":"1.31.0","publishedAt":"2025-03-11T00:53:13Z","kind":"first-seen","detail":"Added as development.","severity":"informational"}],"replaces":["android.state"]}