0427-android-距离感应了解一下
摘要:
总结:距离感应器单位是cm,每个距离感应器可能都不一样,大部分都只有远近两种结果,getMaximumRange() 可以得到远近的分界值。参考:TYPE_PROXIMITYSensorEvent.values[0] cmSensor.TYPE_PROXIMITY:values[0]: Proximity sensor distance measured in centimetersvalues[0]:距离感应器测量单位是厘米。Note:Some proximity sensors only support a binarynearorfarmeasurement. In this case, 阅读全文
posted @ 2013-04-27 22:40 DON'T PANIC 阅读(573) 评论(0) 推荐(0) 编辑