How to figure out Heading with Compass

by droid_dev » Wed, 02 Jun 2010 07:24:44 GMT


Sponsored Links
 Hi,

I am trying to write an app that uses the compass along with steps
travelled to approximate the path one takes
walking around.  I fugure that I can use the z value of
SENSOR_ORIENTATION or the z value returned by
SensorManager.getOrientation() which is more recommended by the API
doc.  Can someone explain why getOrientation() is prefered over
SENSOR_ORIENTATION?  They both seem to produce a magnetic north
reading, which I should be able to correct with the declination angle
getDeclination()  (android.hardware.GeomagneticField)

Thanks!


--



Other Threads

1. How to get root access of my android phone

Hi,

Can you please tell me how can I get root access of my android phone?

Thank you.

--~--~---------~--~----~------------~-------~--~----~

2. Animated window transitions in Android 1.5

You generally don't -- let the system use its standard one.






-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~

3. is it possible to save an mp3 from my applications raw folder onto the sdcard?

4. LooperThread

5. Is referencing resources across resource files dependent on the filename?

6. How do I pass data between applications?

7. Ability to quit/disable an app after trial period?