简体   繁体   English

光传感器的“通用”值?

[英]“Universal” values for light sensor?

I tried to registret the light with two smarthphones. 我试图用两个smarthphone重新注册灯光。 My samsung galaxy return values from 1 to 10k (<1k if i have a roof or something else over me, or 9000 if there is nothing over me)., while an old xperia return values from 1 to 100k (<10k if i have a roof or something else over me, or 90000 if there is nothing over me). 我的三星银河返回值从1到10k(如果我上面有屋顶或其他东西,则返回<1k;如果我上面没有东西,则返回9000)。而旧的xperia返回值从1到100k(如果我具有屋顶或我上方的其他物体;如果上方没有物体,则为90000)。 Is there a way to find a "universal value" or something like this? 有没有办法找到“普遍价值”或类似的东西? In the android documentation i didn't find anything useful. 在android文档中,我没有发现任何有用的东西。

Is there a way to find a "universal value" or something like this? 有没有办法找到“普遍价值”或类似的东西?

There is no "universal" value, but getMaximumRange() on the Sensor should tell you the highest possible value for that specific device that your app is running on. 没有“通用”值,但Sensor上的getMaximumRange()应该告诉您正在运行您的应用的特定设备的最大可能值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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