标题: Android's sensors [打印本页] 作者: wangxingchao201 时间: 2010-01-23 20:37 标题: Android's sensors 1>. Documents about sensors interface in IBM Development websitesTapping into Android's sensors http://www.ibm.com/developerworks/opensource/library/os-android-sensor/index.html?S_TACT=105AGX52&S_CMP=content
android.hardware.SensorManagerA class that permits access to the sensors available within the Android platform. Not every Android-equipped device will support all of the sensors in theSensorManager, though it's exciting to think about the possibilities. (See below for a brief discussion of available sensors.)android.hardware.SensorListenerAn interface implemented by a class that wants to receive updates to sensor values as they change in real time. An application implements this interface to monitor one or more sensors available in the hardware. For example, the code
in this article contains a class that implements this interface to monitor the orientation of the device and the built-in accelerometer.
pay attention to resources list below this article,there's one for dalvik:( http://en.wikipedia.org/wiki/Dalvik_virtual_machine
)
others developments websites are banned by gfw fu**cking wall.
2>. codes file listssensor manager and events:frameworks/base/core/java/android/hardware/services:frameworks/base/services/java/com/android/server/
3> documents from jeffrey.