How to use Android sensors to detect how fast the device is moving
Accelerometers measure change in speed (acceleration), not speed itself.
If you are looking for short distances you are out of luck. Long distances
you can poll this data from the GPS which gives you a heading and average