|
1 | | -# Android |
| 1 | +<!--- Hugo front matter used to generate the website version of this page: |
| 2 | +---> |
2 | 3 |
|
3 | | -<!-- toc --> |
| 4 | +<!-- NOTE: THIS FILE IS AUTOGENERATED. DO NOT EDIT BY HAND. --> |
| 5 | +<!-- see templates/registry/markdown/attribute_namespace.md.j2 --> |
4 | 6 |
|
5 | | -- [Android Attributes](#android-attributes) |
6 | | -- [Deprecated Android Attributes](#deprecated-android-attributes) |
| 7 | +# Android |
7 | 8 |
|
8 | | -<!-- tocstop --> |
| 9 | +- [Android](#android-attributes) |
| 10 | +- [Android Deprecated](#android-deprecated-attributes) |
9 | 11 |
|
10 | 12 | ## Android Attributes |
11 | 13 |
|
12 | | -<!-- semconv registry.android(omit_requirement_level) --> |
13 | | -| Attribute | Type | Description | Examples | Stability | |
14 | | -|---|---|---|---|---| |
| 14 | +The Android platform on which the Android application is running. |
| 15 | + |
| 16 | +| Attribute | Type | Description | Examples | Stability | |
| 17 | +| ---------------------- | ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | ---------------------------------------------------------------- | |
15 | 18 | | `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](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels). | `33`; `32` |  | |
16 | | -<!-- endsemconv --> |
17 | 19 |
|
18 | | -## Deprecated Android Attributes |
| 20 | +## Android Deprecated Attributes |
| 21 | + |
| 22 | +This document defines attributes that represents an occurrence of a lifecycle transition on the Android platform. |
19 | 23 |
|
20 | | -<!-- semconv registry.android.deprecated(omit_requirement_level) --> |
21 | | -| Attribute | Type | Description | Examples | Stability | |
22 | | -|---|---|---|---|---| |
23 | | -| `android.state` | string | Deprecated use the `device.app.lifecycle` event definition including `android.state` as a payload field instead. [1] | `created` |  | |
| 24 | +| Attribute | Type | Description | Examples | Stability | |
| 25 | +| --------------- | ------ | -------------------------------------------------------------------------------------------------------------------- | ------------------------------------- | ---------------------------------------------------------------- | |
| 26 | +| `android.state` | string | Deprecated use the `device.app.lifecycle` event definition including `android.state` as a payload field instead. [1] | `created`; `background`; `foreground` |  | |
24 | 27 |
|
25 | 28 | **[1]:** The Android lifecycle states are defined in [Activity lifecycle callbacks](https://developer.android.com/guide/components/activities/activity-lifecycle#lc), and from which the `OS identifiers` are derived. |
26 | 29 |
|
27 | 30 | `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. |
28 | 31 |
|
29 | | -| Value | Description | Stability | |
30 | | -|---|---|---| |
31 | | -| `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. |  | |
32 | | -| `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. |  | |
| 32 | +| Value | Description | Stability | |
| 33 | +| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | |
| 34 | +| `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. |  | |
| 35 | +| `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. |  | |
33 | 36 | | `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. |  | |
34 | | -<!-- endsemconv --> |
|
0 commit comments