Android重力感应开发

发表于 Android 分类,标签:
转自http://blog.csdn.net/mad1989/article/details/20848181一、手机中常用的传感器在Android2.3gingerbread系统中,google提供了11种传感器供应用层使用,具体如下:(Sensor类)#defineSENSOR_TYPE_ACCELEROMETER1//加速度#defineSENSOR_TYPE_MAGNETIC_FIELD2//磁力#defineSENSOR_TYPE_ORIENTATION3//方向#defineSENSOR_TYPE_GYROSCOPE4//陀螺仪#defineSENSOR_TYPE_LIGHT5//光线感应#defineSENSOR_TYPE_PRESSURE6//压力#defineSENSOR_TYPE_TEMPERATURE7//温度#defin...