| CLASS info |
| public class ActivityIdentificationData implements Parcelable |
| Class for detecting the activity. |
| Name | Desc | |
| Creator<ActivityIdentificationData> | CREATOR | Used for deserializing ActivityIdentificationData. |
| Constructor name |
| ActivityIdentificationData(int identificationActivity, int possibility) This API is used to construct a ActivityIdentificationData object. |
| Type | Name | Desc |
| int | VEHICLE | The device is in a vehicle, such as a car. |
| int | BIKE | The device is on a bicycle. |
| int | FOOT | The device user is walking or running. |
| int | STILL | The device is still. |
| int | UNKNOWN | The current activity cannot be detected. |
| int | TILTING | The device has an obvious tilt change. |
| int | WALKING | The user of the device is walking,it is a sub-activity of FOOT. |
| int | RUNNING | The user of the device is running,it is a sub-activity of FOOT. |
| Return type | Method name |
| int | getPossibility() |
| int | getIdentificationActivity() |
| constructor |
| public ActivityIdentificationData(int identificationActivity, int possibility) |
| This API is used to construct a ActivityIdentificationData object. |
Parameters
| Parameter name | Parameter desc |
| identificationActivity | Detected activity type. |
| possibility | Confidence. |
| Constant |
| public static final int VEHICLE |
| The device is in a vehicle, such as a car.Constant Value:100 |
| Constant |
| public static final int BIKE |
| The device is on a bicycle.Constant Value:101 |
| Constant |
| public static final int FOOT |
| The device user is walking or running.Constant Value:102 |
| Constant |
| public static final int STILL |
| The device is still.Constant Value:103 |
| Constant |
| public static final int OTHERS |
| The current activity cannot be detected.Constant Value:104 |
| Constant |
| public static final int TILTING |
| The device has an obvious tilt change.Constant Value:105 |
| Constant |
| public static final int WALKING |
| The user of the device is walking,it is a sub-activity of FOOT.Constant Value:107 |
| Constant |
| public static final int RUNNING |
| The user of the device is running,it is a sub-activity of FOOT.Constant Value:108 |
Return
| type | desc |
| int | Confidence information. |
| Method |
| public int getIdentificationActivity() |
| This API is used to obtain the type of the detected activity. |
Return
| type | desc |
| int | Activity type. |