Difference between Android SensorManager and Google Fit raw sensor data?

安稳与你 提交于 2021-02-19 03:53:10

问题


For my app I need to read the user's latest heart rate to send in every message.

One is the Android SensorManager and the other is Google Fit's Sensors. Also there is Samsung's Health app (don't think this one will give me the data I need as I don't need past data unless I just query it for the latest heart rate).

What is the difference between these methods of accessing the user's heart rate? Is one better than the other for my purposes? Or are they all the same?

https://developer.android.com/reference/android/hardware/Sensor.html#STRING_TYPE_HEART_RATE

https://developers.google.com/fit/android/sensors

来源:https://stackoverflow.com/questions/53270379/difference-between-android-sensormanager-and-google-fit-raw-sensor-data

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!