To make getRotationMatrix work, just pass the accelerometer and
magnetic field sensor's observed values array to gravity and
geomagnetic parameters and memory-allocated 4x4 float array to R and I
parameters.
I tried to pass 3x3 arrays as api doc say, but it didn't work.

Y.T.

On Jul 7, 6:28 am, Herbert <[email protected]> wrote:
> On my phone (HTC Magic) SensorManager.getRotationMatrix(...)  fails
> always: it returns false and does not fill the arrays parameter with
> something usable.
> I'm surely doing something wrong...
> However if getRotationMatrix() doesn't work
> SensorManager.getOrientation() is also useless.
>
> If someone knows how to use SensorManager.getRotationMatrix(...), can
> he help me ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to