The Android platform provides a sensor that lets you determine how close the face of a device is to an object (known as the proximity sensor). Proximity sensor is hardware based, we might often experience that our phone screen would turn off when we bring the phone to our ears when we are in a call and the screen will turn on when we take it back. This is because the proximity sensor recognises the object near the phone.
Thanks for sharing information….for Proximity sensor in android apps
Data Trace Automation