I'm having a pretty interesting dilemma right now, and after looking around on SO and doing some googling, it seems coming up with a solution is not as easy as I thought.
I'm looking to use Android's built in sensors(accelerometer), to gather if a device is in constant motion inside a moving vehicle. The obvious alternative to this would be just to use GPS and then Location.getSpeed(), but unfortunately I need this to work in an environment with zero network connection. Think underground or in a tunnel.
Basically I want to be able to track intervals of change in velocity from
|Consistent Motion|***stop***|Consistent Motion|
Specifically, it seems what I want to do is called Inertial Navigation
I don't need specific values like the speed of the device, etc. I just want to able to differentiate between from when the device is in constant motion and when it comes to a complete stop
Have any of you ever done something like this? Judging from a few answers here, and here, it seems that this is either extremely difficult, with a great margin of error due the sensors fluctuations/inaccuracy, or basically impossible.