下列代码,()是获取加速度传感器
A. mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_PROXIMITY);
B. mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
C. mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION);
D. mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE);