> For the complete documentation index, see [llms.txt](https://docs.sentiance.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sentiance.com/sdk/api-reference/android/useractivity.md).

# UserActivity

Represents a user activity detected by the SDK detections.

## UserActivity API

### `getActivityType()`

> ```java
> UserActivityType getActivityType()
> ```
>
> Returns a [`UserActivityType`](/sdk/api-reference/android/useractivitytype.md) enum representing the detected activity type.

### `getTripInfo()`

> ```java
> @Nullable TripInfo getTripInfo()
> ```
>
> Returns a [`TripInfo`](/sdk/api-reference/android/tripinfo.md) object containing info about the ongoing trip. If the current activity is not a trip, this method will return `null` instead.

### `getStationaryInfo()`

> ```java
> @Nullable StationaryInfo getStationaryInfo()
> ```
>
> Returns a [`StationaryInfo`](/sdk/api-reference/android/stationaryinfo.md) object containing info about the current stationary state. If the current activity is not a stationary, this method will return `null` instead.
