我指的是此处描述的 API:https://developers.google.com/fit/overview .
我的 Moto360 和手机 (Nexus 4) 上都有 Google Fit。我想通过 Moto 360 检索步数/心率数据。 API,但似乎只接收位置数据(来 self 的手机)。有帮助吗?
我使用了位于此处的 Google 示例应用程序:https://developers.google.com/fit/android/samples .
谢谢!
最佳答案
只需检查该应用程序:https://play.google.com/store/apps/details?id=com.github.pocmo.sensordashboard
它是开源的,完整代码在这里:https://github.com/pocmo/SensorDashboard
一定要看一下传感器管理器类:https://github.com/pocmo/SensorDashboard/blob/master/wear/src/main/java/com/github/pocmo/sensordashboard/SensorService.java
关于android - 有没有人能够通过 Moto 360 获取传感器数据。谷歌健身 API?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27263282/