title: How to get current value of Android's proximity sensor?
body: <p>Is it possible to get the current value of the Proximity Sensor in Android?  </p>
  
  <p>I know that I can use SensorManager and Sensor and register a state changed listener, but I have no need to be notified of every state change, so it would be highly inefficient since this code is being run in a service.  Also, my code won't know the value until a state change has occurred (what if the value hasn't changed...how do I know what it is?  Instead, rather than registering a listener, I just want to say:</p>
  
  <pre><code>proximitySensor.getCurrentDistance();
  </code></pre>
  
  <p>Is this possible?</p>
  
  <p>Thanks</p>