# 活动识别 (Activity recognition)

Source: [https://docs.qualcomm.com/doc/80-PK177-134Y/topic/activity_recognition.html](https://docs.qualcomm.com/doc/80-PK177-134Y/topic/activity_recognition.html)

活动识别方法可用于理解用户正在执行的操作，从而使应用程序变得更加智能。应用程序必须具有 `android.permission.ACTIVITY_RECOGNITION` 运行时权限才能访问 API。只有具备该访问权限，才能跟踪活动。如果没有活动识别权限，QESDK 传感器创建会话将失败，返回结果为 -2 错误。

- **[活动识别枚举](https://docs.qualcomm.com/doc/80-PK177-134Y/topic/activity_recognition_enums.html)**  

活动识别中定义的所有枚举均由 QESDK 传感器 API 使用。

**Parent Topic:** [传感器 API](https://docs.qualcomm.com/doc/80-PK177-134Y/topic/qesdk_sensor_apis.html)

Last Published: Jun 22, 2023

[Previous Topic
Ievent\_callback\_type.onValues](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134Y/topics/ievent_callback_type_onvalues1.md) [Next Topic
活动识别枚举](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134Y/topics/activity_recognition_enums.md)