📜  在 android 中使用计步器传感器获取步数 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:21.453000             🧑  作者: Mango

代码示例1
The step counter sensor is used to get the total number of steps taken by the user since the last reboot (power on) of the phone. When the phone is restarted, the value of the step counter sensor is reset to zero. In the onSensorChanged() method, the number of steps is give by event.