title: Printing the enum's name
body: <p>I'm using eclipse + Android SDK on Ubuntu.</p>
  <p>I would like to print the name of a sensor type device, there a <a href="http://developer.android.com/reference/android/hardware/Sensor.html" rel="nofollow noreferrer">a lot of them</a> and I want to do it automatically.</p>
  <p>If I use a</p>
  <pre><code>Log.d(&quot;SENSORTYPE&quot;,&quot;Type: &quot; + tempSensor.getType())
  </code></pre>
  <p>I print the (int) type, but I would like the name of the enum.</p>
  <p>How could I do that?</p>