getSensorList() vs. getDefaultSensor() in Android SensorManager
问题 I'm writing a game for Android and want to be able to use the accelerometer for input. I see two ways of getting a sensor, one way is to use the first element of SensorManager.getSensorList(Sensor.TYPE_ACCELEROMETER) and the other is SensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER) . The getDefaultSensor doc says it could return a "composite" sensor, so if I want a "raw" sensor I should use getSensorList . Any idea what the difference between a composite or raw sensor is? Does this