Thanks guys :) It really was the MAGNETIC_FIELD thing. Was using the wrong
sensor for 4 hours and didn't notice that :(

Again, thanks.

On Wed, Jul 20, 2011 at 05:08, Adam Ratana <adam.rat...@gmail.com> wrote:

> 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 <adam....@gmail.com> 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 android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to