I am using SensorEventListener for geting gravity..
But I want Gravity only x-direction..
What I do for geting acceleration value only in X-direction..
I am using SensorEventListener for geting gravity.. But I want Gravity only x-direction.. What
Share
To be more specific from the answer from Rajnikant, look here :
http://developer.android.com/reference/android/hardware/SensorEvent.html#values
values[0] gives you the acceleration on the X-axis…