开发者

Can only get a value of false to return when accessing Sensor.TYPE_TEMPERATURE

The Google doc's cover every one of the sensors except the temperature sensor, but continue to say that you can access that data...........it's aggrevating as heck, the doc's are very good in some parts and very bad in others.

I have no problem getting the data from the other sensors so I'm quite sure my code is good. Would love some insite on how to retrieve开发者_StackOverflow中文版 the temp sensors value(s).


In Android, when polling for a sensor's data,
a value of 'False' is returned to your app when no events for your particular sensor have been reported.

Please verify that your low-level implementation is working fine.

Log your kernel-drivers and watch if they are reporting events as expected by the Android Sensor HAL.

GoodLUCK!
-CVS

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜