Android
Android Attributes
The Android platform on which the Android application is running.
Attribute | Type | Description | Examples | Stability |
---|---|---|---|---|
android.os.api_level | string | Uniquely identifies the framework API revision offered by a version (os.version ) of the android operating system. More information can be found here. | 33 ; 32 |
Deprecated Android Attributes
This document defines attributes that represents an occurrence of a lifecycle transition on the Android platform.
Attribute | Type | Description | Examples | Stability |
---|---|---|---|---|
android.state | string | Deprecated use the device.app.lifecycle event definition including android.state as a payload field instead. [1] | created ; background ; foreground | Replaced by device.app.lifecycle . |
[1]: The Android lifecycle states are defined in Activity lifecycle callbacks, and from which the OS identifiers
are derived.
android.state
has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
Value | Description | Stability |
---|---|---|
background | 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. | |
created | Any time before Activity.onResume() or, if the app has no Activity, Context.startService() has been called in the app for the first time. | |
foreground | 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. |
Feedback
Was this page helpful?
Thank you. Your feedback is appreciated!
Please let us know how we can improve this page. Your feedback is appreciated!