问题
Hi i would like to know the minimum and maximum range of accelerometer in android.
i need it for x,y,z.
do any one have exact values of it?
回答1:
There is no "exact values" in general -- it will vary by device. The Sensor
class has getMaximumRange()
. Since acceleration can be positive or negative, I would assume you can safely multiply that value by -1 to get the minimum value.
回答2:
It measures a physical magnitude! I don't really know if there is some practical limit introduced by the hardware-device, but I don't think you're gonna be that fast... Since its a vectorial magnitude, the sign means the sense of your movement.
PD: I'm assuming you mean Sensor.TYPE_ACCELEROMETER
events values.
来源:https://stackoverflow.com/questions/4691097/what-is-android-accelerometer-min-and-max-range