| android Programming Glossary: info.orientationAndroid Camera Preview Rotation http://stackoverflow.com/questions/10385147/android-camera-preview-rotation  case Surface.ROTATION_270 degrees 270 break int result if info.facing Camera.CameraInfo.CAMERA_FACING_FRONT result info.orientation degrees 360 result 360 result 360 compensate the mirror else back facing result info.orientation degrees 360 360 However.. result info.orientation degrees 360 result 360 result 360 compensate the mirror else back facing result info.orientation degrees 360 360 However i can not work with some kind of Devices. Like Samsung Galaxy Y S5360 S5660 YP G1 YP G70 etc Just.. 
 EXIF orientation tag value always 0 for image taken with portrait camera app android http://stackoverflow.com/questions/13245556/exif-orientation-tag-value-always-0-for-image-taken-with-portrait-camera-app-and   case Surface.ROTATION_270  degrees 270 break  int result if info.facing Camera.CameraInfo.CAMERA_FACING_FRONT  result info.orientation degrees 360  result 360 result 360  else back facing  result info.orientation degrees 360 360  camera.setDisplayOrientation..  result info.orientation degrees 360  result 360 result 360  else back facing  result info.orientation degrees 360 360  camera.setDisplayOrientation result  else  parameters.set orientation portrait  camera.setParameters parameters.. 
 Rotating phone quickly 180 degrees, camera preview turns upside down http://stackoverflow.com/questions/19532599/rotating-phone-quickly-180-degrees-camera-preview-turns-upside-down  degrees 270 Constant.result 270 break int result if info.facing Camera.CameraInfo.CAMERA_FACING_FRONT result info.orientation degrees 360 result 360 result 360 compensate the mirror else back facing result info.orientation degrees 360 360 camera.setDisplayOrientation.. result info.orientation degrees 360 result 360 result 360 compensate the mirror else back facing result info.orientation degrees 360 360 camera.setDisplayOrientation result @Override public void surfaceCreated SurfaceHolder holder camera Camera.open.. 
 |