public static class SmotionActivity.Info
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ACCURACY_HIGH
High accuracy of the activity event.
|
static int |
ACCURACY_LOW
Low accuracy of the activity event.
|
static int |
ACCURACY_MID
Medium accuracy of the activity event.
|
static int |
MODE_ALL
Both batch and real time activity mode.
|
static int |
MODE_BATCH
Batch activity mode.
|
static int |
MODE_REALTIME
Real time activity mode.
|
static int |
STATUS_RUN
User is running.
|
static int |
STATUS_STATIONARY
User is not moving.
|
static int |
STATUS_UNKNOWN
Current activity cannot be detected.
|
static int |
STATUS_VEHICLE
User is in a vehicle, such as a car.
|
static int |
STATUS_WALK
User is walking.
|
Constructor and Description |
---|
SmotionActivity.Info()
Creates a SmotionActivity.Info instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getAccuracy()
Get the accuracy of the detected activity.
|
int |
getStatus()
Get the activity status.
|
long |
getTimeStamp()
Get the timestamp in milliseconds.
|
public static final int STATUS_UNKNOWN
public static final int STATUS_STATIONARY
public static final int STATUS_WALK
public static final int STATUS_RUN
public static final int STATUS_VEHICLE
public static final int ACCURACY_LOW
public static final int ACCURACY_MID
public static final int ACCURACY_HIGH
public static final int MODE_ALL
public static final int MODE_REALTIME
public static final int MODE_BATCH
public SmotionActivity.Info()
java.lang.IllegalStateException
- Thrown if the device does not support
SmotionActivity or the SmotionActivity instance is not
created.public int getStatus()
public int getAccuracy()
public long getTimeStamp()