Possible Duplicate:
Android accelerometer accuracy (Inertial navigation)
I am an amateur in android programming and currently designing a game where I need to calculate the distance covered when the user moves his/her device.
I get the value of linear acceleration either from the device or applying High Pass Filter on Accelerometer which is pretty much the same.
The problem I am facing is that even if I keep my device at a STEADY CONDITION where it might form an angle with X, Y and Z. At this time, I get some non zero value of by the Linear Acceleration. Here I am not able to understand that even on keeping my device in an steady condition, why I am getting a non-zero value. Is there a way to apply a filter so that I can make value of linear acceleration zero in the steady condition.