How to figure out Heading with Compass

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

Sponsored Links

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)



Other Threads

1. Flickr upload API hangs in emulator


    I am trying to develop a flickr photosharing application. I have
used the flickr "C" library flickcurl-1.7
    The flickr api for uploading a snap hangs in the emulator.But the
same api is working fine in any
    linux platform. To get more clarity, i opened the site
in the emulator and went to the "uploads" section. But surprisingly,
that section itself gives "Uploads disabled"(only in emulator !).Have
anybody come across a similar problem in emulator? If so kindly get
back to me.

Thanks in advance,


2. Support of JKS Keystore in Android

    I am having Java SSL based server and I want to connect android SSL
supported client to it. My keystore in Java is JKS, but android says no JKS
implementation found. It supports BKS. Is there any way to have JKS support
for android ? If not then how can use BKS in Java.

I am trying using PKCS12, but documentation says using PKCS12 for
trustanchors purpose is not supported.

Does anybody has any suggestions about this issue ?


|| Hare Krishna Hare Krishna Krishna Krishna Hare Hare ||
|| Hare Rama    Hare Rama   Rama   Rama    Hare Hare ||


3. what's the best 2d engine and what's the tools I need to create a game?

4. Android's Antivirus/Firewall architectur

5. New application replacing old application

6. Database : XML or SQLite ?

7. Camera in Portrait on Surface View