Maths behind the Android orientation calculation algorithm

by DD » Sun, 28 Mar 2010 13:30:33 GMT

Sponsored Links

I know Android calculates the orientation of the phone by fusing the
acceleration and magnetic field readings. The related APIs are
getRotationMatrix() and getOrientation(). I looked into the source
code of these two APIs 

But I couldn't really figure out where exactly the implementation came
from... Could anybody tell me where I can find the theory of this
algorithm and detailed mathematical background of it? I'm currently
implementing exactly the same algorithm offline in MATLAB, and trying
to write some mathematical analysis about it.

Thank you very much!


Other Threads

1. Hide a progressbar?


I have added an indeterminate progress bar to my view and I want it to
be displayed when the user clicks a button.
The problem is as soon as the activity is loaded and the intent
displayed, the progress bar is also displayed. I have used the
setProgressBarVisibility(true); statement in the onClick method but
the progress bar is displayed even without the onClick.

Can someone please tell me how to keep the progress bar hidden till
the button click happens?


2. XMF file format support

Do we have support for XMF file format . Its audio file . I was under
impression that the way midi is supported same wat xmf may be


3. Singleton in different service which share same process

4. Is it possible to start an application programmatically?

5. Application Android keyboard stoppe

6. How do the services communicate with each other?

7. Any more info about android.os.RemoteException ??