简体   繁体   中英

Sensor.TYPE_LIGHT returns multiple values

In my application (on Samsung Galaxy S3) I use the Sensor.TYPE_LIGHT -Sensor.

The value of values[0] is clear, it's the lux-value of the current light (This is about 40-50 in normal light ambiente).

But I also get a value from values[1].

According to the developer.android.com-Page this is not possible because there's only one value.

Now I wonder: What is this value?

Attached is a link to a screenshot, on the upper left you see the values of values[0] and values[1].

http://i.stack.imgur.com/CBR5p.jpg

I believe this is the RGB light sensor values coming from the Samsung device. Since the Galaxy S3 values[1] provides an output on Samsung devices with an RGB sensor.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM