Tuesday, February 14, 2012

[android-developers] Android: Sensor.getResolution() value

I'm working on Android applications which uses SensorManager for
defferent purposes.
During investigation I found that Sensor.getResolution() function
returns different values for different devices:

HTC Sensation has 1.0 resolution value for all on board sensors.

Motorola XOOM:

3-axis Accelerometer -> 0.009576807
3-axis Magnetic field sensor -> 0.0625
L3G4200D Gyroscope sensor -> 0.0012217305
Linear Acceleration Sensor -> 0.009576807
Gravity Sensor -> 0.009576807
It's not clear whether I need to do additional calculation using this
resolution value before using appropriate sensor's values. Official
documentation doesn't throw the light upon it.

Can anybody explain me this 'resolution' value purpose?

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate