¡@

Home 

2014/10/16 ¤W¤È 08:17:37

android Programming Glossary: latchedorientation

Android camera unexplainable rotation on capture for some devices (not in EXIF)

http://stackoverflow.com/questions/3852154/android-camera-unexplainable-rotation-on-capture-for-some-devices-not-in-exif

reflection to see if set the rotation as such final int latchedOrientation roundOrientation mLastOrientation 90 Parameters parameters preview.camera.getParameters.. JPLog.d Setting camera rotation d latchedOrientation try if 2.0 Method method Camera.Parameters.class.getMethod setRotation.. int.class if method null method.invoke parameters latchedOrientation catch Throwable t if 2.0 parameters.set rotation latchedOrientation..

Android camera unexplainable rotation on capture for some devices (not in EXIF)

http://stackoverflow.com/questions/3852154/android-camera-unexplainable-rotation-on-capture-for-some-devices-not-in-exif

1.5. I have the OrientationEventListener running OK and I use reflection to see if set the rotation as such final int latchedOrientation roundOrientation mLastOrientation 90 Parameters parameters preview.camera.getParameters JPLog.d Setting camera rotation.. mLastOrientation 90 Parameters parameters preview.camera.getParameters JPLog.d Setting camera rotation d latchedOrientation try if 2.0 Method method Camera.Parameters.class.getMethod setRotation int.class if method null method.invoke parameters.. if 2.0 Method method Camera.Parameters.class.getMethod setRotation int.class if method null method.invoke parameters latchedOrientation catch Throwable t if 2.0 parameters.set rotation latchedOrientation preview.camera.setParameters parameters NexusOne OS..