The following applies to the Android operating system.
I am trying to estimate how dark (or light) it is in the room where the phone is located using the camera.
The idea is that the camera can return a certain brightness level, which I can use to determine the amount of light in the surroundings of the phone.
My question is simple: how do I use the camera (either the front of back camera) to get this amount of brightness (the "amount of light")?
Thanks in advance.