Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

get steps counts using pedometer sensor in android

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.
 
PREVIOUS NEXT
Tagged: #steps #counts #pedometer #sensor #android
ADD COMMENT
Topic
Name
6+8 =