gps - Android - Determining when user increases its speed, and when it decreases -
for android app need determine when user increases speed , when decreases it, don't need find exact speed value, know if has increased, decreased or it's same. first solution came register listener gps , in onlocationchanged() method calculate speed , check see if greater or equal, didn't worked, beacuase speed inaccurate. solution tried use accelerometer measure steps in 2 seconds, , compare measure previous one, see greater, didn't found exact algorithm. found approximation android pedometer github code sample: https://github.com/bagilevi/android-pedometer , wasn't accurate.
so, solution should use? what's effective way of counting steps accelerometer?
thank you.
Comments
Post a Comment