Light and Proximity Sensors

537 Views Asked by At

This question is not exactly about code but rather knowing the sensors on android phones.

My application use sensors. So I would like to know is Light sensor or Proximity sensor is present on most of Devices. I have got some test devices and my observation is only higher end devices have got Light Sensor whereas the same is not available on lower end(low cost) Phones but the Proximity is available on all Phones. There would be someone playing with sensors so far, can share your observation so I can take the decision what to choose to go further with my application. Thanks.

1

There are 1 best solutions below

5
Demonick On

Check https://developer.android.com/guide/topics/sensors/sensors_overview.html and especially the "Sensor Availability" part.

My personal observation is that proximity and light sensors are available at least from 19 and work so far on Samsung, ASUS, Huawei, and other devices. But light sensors are more sensitive on high-end devices. So sometimes an extreme light change is needed for a light sensor on lower-end devices to even show a change from baseline 0.0. Proximity sensors work more reliably across versions, but the distance they support varies from 5cm until 10cm and more.

In short these sensors will work virtually on all relevant devices, but their sensitivity itself will be different.