Human Activity Monitor
Tizen enables you to access the human activity data from various sensors on the device.
The Human Activity Monitor API is optional for both Tizen mobile and wearable profiles, which means that it may not be supported in all mobile and wearable devices. The Human Activity Monitor API is partly supported on the Tizen Emulators (only heart-rate monitoring).
The main features of the Human Activity Monitor API include:
- Retrieving data
You can collect monitor data.
- Receiving notifications
You can detect changes in the monitor data.
The supported monitor types and their capabilities are listed in the following table.
Monitor | Capability |
---|---|
Pedometer and accumulative pedometer | http://tizen.org/feature/sensor.pedometer |
Wrist up | http://tizen.org/feature/sensor.wrist_up |
Heart rate monitor | http://tizen.org/feature/sensor.heart_rate_monitor |
GPS | http://tizen.org/feature/location.batch |
When the pedometer, HRM, and GPS sensors are started, a change callback is invoked when data changes. Use the getHumanActivityData() method to get current data.
The GPS sensor provides both the current value and a short history of last recorded GPS positions.
The accumulative pedometer sensor does not have to be started by your application as long as step counting is enabled by any other application or the system. Listener registered with the setAccumulativePedometerListener() method is called when accumulative counters are changed.
The wrist up sensor is notified when the relevant gesture is performed. The sensor must be enabled using the start() method. An event listener invoked when the gesture is detected. This sensor does not provide any data.