public static final int TYPE_ACCELEROMETER = 1; // 加速度传感器 public static final int TYPE_MAGNETIC_FIELD = 2; // 磁场传感器 public static final int TYPE_ORIENTATION = 3; // 方向传感器 public static final int TYPE_GYROSCOPE = 4; // 陀螺仪传感器 public static final int TYPE_LIGHT …