It works fine on my G1. I'll be posting more info on my blog tonight
(hopefully). Here is a code snippet...

        final int matrix_size = 16;
        float[] R = new float[matrix_size];
        float[] outR = new float[matrix_size];
        float[] I = new float[matrix_size];
        float[] values = new float[3];

            if (mags != null && accels != null && isA) {
                isA = false;

                SensorManager.getRotationMatrix(R, I, accels, mags);

                SensorManager.remapCoordinateSystem(R,
SensorManager.AXIS_X, SensorManager.AXIS_Z, outR);
                SensorManager.getOrientation(outR, values);


I'm displaying the three output values and they are commensurate with
the positioning of the phone. This is mapped into camera mode. Also
see the acceleramtere thread (http://groups.google.com/group/android-
developers/browse_frm/thread/2e14272d72b7ab4f#).

Rud
http://mysticlakesoftware.blogspot.com/

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