问题
Google has published apis with respect to wearable devices. Since many smart watch manufactures state they have a heart rate sensor, I'm wondering if android published apis for it. I checked the web and didn't find anything.
Anyone who's interested in wearable developing that happens to know about it?
Thanks.
回答1:
(As of now) those APIs belong to each smartwatch maker not Google. Please check my project here:
http://blog.kii.com/?p=3942
and specifically this file:
https://github.com/germanviscuso/PingHeart/blob/master/wear/src/main/java/com/kii/demo/wearable/WearActivity.java
to see how to use the heart rate sensor API on the Samsung Gear Live.
Best.
German
来源:https://stackoverflow.com/questions/25896481/heart-rate-sensor-api-for-android