[android-developers] Re: getRotationMatrixFromVector() broken on Note 3

2014-01-26 Thread Adam Ratana
Also, found a reasonable alternative to the solutions here in the chromium source - looks like from a google search this had to be patched there, too -- https://src.chromium.org/viewvc/chrome/trunk/src/content/public/android/java/src/org/chromium/content/browser/DeviceMotionAndOrientation.java?

[android-developers] Re: getRotationMatrixFromVector() broken on Note 3

2014-01-26 Thread Adam Ratana
Just got bit by this when I updated the target-sdk from 16.Prior to that this was not happening for my S4 and Note 3 users. On Wednesday, October 2, 2013 1:39:12 PM UTC-4, String wrote: > > I've already worked around the problem; I wasn't posting here looking for > solutions, more to put thi

[android-developers] Re:  getRotationMatrixFromVector() broken on Note 3

2014-01-01 Thread Ron
I encountered the same problem with a Samsung S4. On Wednesday, October 2, 2013 8:41:01 AM UTC-5, String wrote: > > I've been getting error reports from users of the Note 3 that boil down to > the following: > > > *java.lang.IllegalArgumentException: R array length must be 3 or 4* > > *at > an

[android-developers] Re: getRotationMatrixFromVector() broken on Note 3

2013-10-02 Thread String
I've already worked around the problem; I wasn't posting here looking for solutions, more to put this out there so that the next dev getting motion-sensor errors on a Note 3 (or similar) would be able to find it. Sorry I didn't make that clear. My solution looks like this: try { SensorManager.

[android-developers] Re:  getRotationMatrixFromVector() broken on Note 3

2013-10-02 Thread Nobu Games
As a temporary fix you could just copy-paste the original source code from the Android SDK as a drop-in replacement: public static void getRotationMatrixFromVector(float[] R, float[] > rotationVector) { > > float q0; > float q1 = rotationVector[0]; > float q2 = rotati