title: How to use Proximity Sensor in Android Programming
body: <p>I know that there are only two values of proximity : 0.0 &amp; 1.0</p>
  
  <p>I need a simple code to detect proximity through the device's sensors, and perform any task if proximity changes to <code>1.0</code></p>