There are quite a few significant issues with the sensor API as it
currently exists in the G1, where many aspects were too loosely
defined, and where there are a few bugs.

A later version of the Android API is expected to resolve those issues
(and to provide backward-compatibility with the current API).

At this point your best bet is to modify your code based on what you
see on the device until it does what you expect. I realize that's a
sad recommendation, but it's pretty much the only realistic one.

JBQ

On Wed, Dec 3, 2008 at 7:00 AM, Ian <[EMAIL PROTECTED]> wrote:
>
> I'm trying to make sense of the SENSOR_MAGNETIC_FIELD sensor values on
> the G1 phone.  It looks to me like the X and Y values are pointing to
> magnetic south, while the Z value is pointing north.  In other words,
> if I hold the phone with the earpiece end pointing north, I get a
> negative Y value; if I hold it with the face of the display pointing
> north, I get a positive Z value.
>
> Looking at the accelerometer X, Y and Z values, they behave as I
> expect.
>
> Is anyone else seeing this, or am I missing something?
> >
>

--~--~---------~--~----~------------~-------~--~----~
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