Android Speed based on accelerometer values
<p>I need to obtain the velocity of an android device, based on the accelerometer values. I made a code that allows me to get the accelerometer values, and then I calculate the velocity, using the formula:
v = v0 + at. (vector calculation)</p>

<p>My problem is that my velocity only increases and never decreases. I think the problem is that the device never gets an negative acceleration. </p>

<p>Can you help me with this?</p>
