title: How to get the compass direction from azimuth on Android
body: <p>I have to display which direction the user is pointing the Android device.</p>
  
  <p>I am using <code>Sensor.TYPE_ACCELEROMETER</code>, <code>Sensor.TYPE_MAGNETIC_FIELD</code> to get the azimuth, pitch, roll. But I am to able to figure out how to get directions (North, south, east , west,...) from this.</p>
  
  <p>Please help</p>
  
  <p>Thanks</p>