androidfrequencylight-sensor

Can android acquire light frequency using light sensor? How?


Can android acquire light frequency using light sensor? If so, how?


Solution

  • It can't get the light frequency. The only value returned by the light sensor is the brightness in Lux values

    See SensorEvent for details. (Search for "lux" to find the right spot)

    Sensor.TYPE_LIGHT:

    values[0]: Ambient light level in SI lux units