If I understand correctly, the magnetic field detectors in the phone
return a 3-d answer (an xyz vector towards the north magnetic pole).
The phone's built-in software takes that information, and combines it
with the information provided by the accelerometers in order to return
the correct answer to the sensor interface.  It even takes the
orientation of the phone (portrait vs landscape) into account.

I also believe there's a way to access the raw xyz magnetic
information.

Sorry for the hand-waving here; it's been a couple months since I
played with that interface.
--~--~---------~--~----~------------~-------~--~----~
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