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

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -