On Jul 19, 9:19 pm, Adam Ratana <[email protected]> wrote:
> You want to use TYPE_MAGNETIC_FIELD this way, instead of GRAVITY.  GRAVITY I
> haven't seen before but the accelerometer is actually a gravity sensor, so
> I'm wondering if its the same data for each?

It says:
===
Note: When the device is at rest, the output of the gravity sensor
should be identical to that of the accelerometer.
==

So it might be safe to use the accelerometer some of the time but I'm
not sure why the sample doesn't use gravity.

Nathan

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

Reply via email to