August 2017
Beginner to intermediate
220 pages
4h 50m
English
Devices worn on the wrist are ideal for fitness apps and the inclusion of a heart rate monitor in many models makes them perfect for such tasks. The way that the SDK manages all sensors is almost identical, so seeing how one works applies to the others.
The following exercise demonstrates how to read the heart rate sensor on a wearable device:
<uses-permission android:name="android.permission.BODY_SENSORS" />
Read now
Unlock full access