title: Android Proximity Sensor - Incorrect value
body: <p>I've run into an issue trying to create an application that keeps track of Proximity Sensor values. The intent of the application is to record the instantaneous proximity value on regular intervals (say 30 seconds). </p>
  
  <p>Following the API Documentation, the standard listener is created and attached for that type of sensor. However, the value is ALWAYS reported as '5.0' (5cm, the max value of the sensor) even when I cover the sensor with my hand. </p>
  
  <p>However, if I start a DIFFERENT application (that also monitors Proximity sensor values) both applications start to correctly report proximity. When I close the other application (<strong><em>Android Sensor Box</em></strong>) my application reverts to just reporting 5.0 all the time. </p>
  
  <p>I have debugged the application and set a breakpoint in the '<strong><em>onSensorChanged</em></strong>' event to double-check what <strong><em>SensorEvent</em></strong> object is being passed to the <strong><em>onSensorChanged</em></strong> method, and it's always 5.0</p>
  
  <p>EDIT #2: It doesn't appear to be limited to the Proximity sensor. The Gyroscope sensor behaves in the same manner while Accelerometer and Magnetometer appear to show the correct and up-to-date values. All four are referenced and accessed in the same fashion. </p>
  
  <p>Any ideas? </p>