page.title=Sensors pdk.version=1.0 @jd:body
Android defines a user space C abstraction interface for sensor hardware. The interface header is defined in
hardware/libhardware/include/hardware/sensors.h.
In order to integrate sensors with Android you need to build a shared library that implements this interface.
The types of sensors currently supported by Android include:
To implement a Sensors driver, create a shared library that implements the interface defined in sensors.h. You must name your shared library
libsensors.so so that it will get loaded from /system/lib at runtime.
Note: This document relies on some Doxygen-generated content that appears in an iFrame below. To return to the Doxygen default content for this page, click here.