Android - mandatory sensors?
Is there a mandatory list for hardware on Android devices (e.g. magnetic field, distance)开发者_开发百科?
If not, which one are common?
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)
精彩评论