Open GoogleCodeExporter opened 9 years ago
I've confirmed the same problem with MyTracks 1.1.16 (on Acer Iconia Tab A100 /
Android 3.2.1), and made a quick fix for this at
<https://code.google.com/r/ssssonik-mytracks-fix-issue-650/>.
This fix checks the rotation of the display every time the heading value
changed,
but it might not be necessary because Activity is re-created when the rotation
changes.
I would appreciate your comments on this fix.
Original comment by sss.so...@gmail.com
on 4 Jun 2012 at 9:25
Original comment by jshih@google.com
on 22 Jun 2012 at 12:41
I did some research. Since Sensor.TYPE_ORIENTATION is deprecated,
we should use SensorManager.getOrientation instead. See
http://stackoverflow.com/questions/8734190/android-compass-example
I will try using SensorManager.getOrientation and see if it fixes this bug.
Original comment by jshih@google.com
on 3 Aug 2012 at 12:35
> Since Sensor.TYPE_ORIENTATION is deprecated, we should use
SensorManager.getOrientation instead.
Right.
But using SensorManager.getOrientation() alone is not enough.
See
<http://android-developers.blogspot.com/2010/09/one-screen-turn-deserves-another
.html>.
We should (1) use SensorManager.getOrientation() instead of
Sensor.TYPE_ORIENTATION, and (2) compensate for the device orientation using
Display.getRotation() and SensorManager.remapCoordinateSystem().
I'll try these.
Original comment by sss.so...@gmail.com
on 3 Aug 2012 at 4:10
Original comment by jshih@google.com
on 10 Nov 2012 at 6:53
Original comment by jshih@google.com
on 10 Nov 2012 at 6:53
Original comment by jshih@google.com
on 28 Feb 2013 at 12:34
Original issue reported on code.google.com by
msmak...@gmail.com
on 9 Dec 2011 at 5:22