我正在实现一个简单的Android应用程序,我需要在其中识别北方。所以我已经实现了SensorEventListener并且我使用了这样的东西:@OverridepublicvoidonSensorChanged(SensorEventevent){if(event.sensor.getType()==Sensor.TYPE_ROTATION_VECTOR){SensorManager.getRotationMatrixFromVector(mRotationMatrix,event.values);SensorManager.remapCoordinateSystem(mRotati