1

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

Asher
  • 53
  • 5

1 Answers1

3

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

WarrenFaith
  • 57,492
  • 25
  • 134
  • 150
  • yeah, that is the only returned value. But is there any other way to meet my needs, like using camera? – Asher Jul 03 '14 at 10:34
  • 1
    With a camera you could take a picture, analyze it and try to check the color temperature. I guess you might get some results but I wouldn't wonder if the accuracy is bad. – WarrenFaith Jul 03 '14 at 10:37
  • Sounds workable, i will research and try it. Thank you. – Asher Jul 03 '14 at 10:42