Interesting, well I think the reason Carlos' code is not working is because 
he needs to use the MAGNETIC_FIELD with perhaps either the ACCELEROMETER or 
GRAVITY.  I personally use the ACCELEROMETER as this has been the practice 
from what I understand since day 1.

On Wednesday, July 20, 2011 12:39:04 AM UTC-4, Nathan wrote:
>
>
>
> 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