title: Find heading for a device
body: <p>I need to find the heading(in terms of degrees east or west of north) for an Android device that is being held vertically(like this: <a href="http://imgur.com/SD7jDlv" rel="nofollow">Heading</a>) . I accessed the sensor.event[2] values returned from the geomagnetic sensor and found that they vary from 1 to 35 as I rotate the device completely about vertical axis. How can I convert this value to a heading? A very brief explanation or a link would be appreciated.</p>