Android - mandatory sensors?

帅比萌擦擦* 提交于 2019-12-06 06:56:58

问题


Is there a mandatory list for hardware on Android devices (e.g. magnetic field, distance)?

If not, which one are common?


回答1:


These things are defined in the Android Compatibility Definition Document (CDD).

Here is the current one. Check out the hardware-sensors section [7.3.].
As far as I can see all sensors are optional.

Most devices are equipped with the following sensors:

  • GPS
  • Accelerometer
  • Proximity sensor
  • Magnetic field
  • Light
  • Gravity

(from an API viewpoint, some might be the same on a hardware basis)



来源:https://stackoverflow.com/questions/7402062/android-mandatory-sensors

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!