title: Android accelerometer angle calculation
body: <p>Can anyone give any idea to calculate the angle by which a compass needle should be rotated to point in the direction of gravity from accelerometer x, y, z values?</p>