[android-developers] Re: device shaked? accelerometer once more

2010-03-03 Thread Ofer.H.G
Hi, I have a problem with the translation of the accelerometer results from the phone to the world orientation. The Z results seem OK but the X and Y get wrong values. It was tested on HTC Hero in horizontal and vertical orientation and on stable state and during phone movement. The Z results

[android-developers] Accelerometer results translation from phone to word orientation

2010-03-01 Thread Ofer.H.G
Hi, I have a problem with the translation of the accelerometer results from the phone to the world orientation. The Z results seem OK but the X and Y get wrong values. It was tested in horizontal phone move. Attached is the code. public void onSensorChanged(SensorEvent event) {