| android Programming Glossary: camera.camerainfo.camera_facing_frontAndroid Camera Preview Rotation http://stackoverflow.com/questions/10385147/android-camera-preview-rotation  degrees 270 break int result if info.facing Camera.CameraInfo.CAMERA_FACING_FRONT result info.orientation degrees 360 result 360 result 360 compensate.. 
 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  i  Camera.getCameraInfo i info if info.facing Camera.CameraInfo.CAMERA_FACING_FRONT  camera Camera.open i  defaultCameraId i    if camera null camera..  degrees 270 break  int result if info.facing Camera.CameraInfo.CAMERA_FACING_FRONT  result info.orientation degrees 360  result 360 result 360.. 
 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  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.. 
 How to open “front camera” on android platform? http://stackoverflow.com/questions/2779002/how-to-open-front-camera-on-android-platform  camIdx cameraInfo if cameraInfo.facing Camera.CameraInfo.CAMERA_FACING_FRONT  try  cam Camera.open camIdx  catch RuntimeException e  Log.e.. 
 switch back/front camera on fly http://stackoverflow.com/questions/6599454/switch-back-front-camera-on-fly  Camera.CameraInfo.CAMERA_FACING_BACK currentCameraId Camera.CameraInfo.CAMERA_FACING_FRONT else currentCameraId Camera.CameraInfo.CAMERA_FACING_BACK camera.. 
 How to capture photo automatically in android phone? http://stackoverflow.com/questions/7228607/how-to-capture-photo-automatically-in-android-phone  camIdx cameraInfo if cameraInfo.facing Camera.CameraInfo.CAMERA_FACING_FRONT  try  cam Camera.open camIdx  catch RuntimeException e  Log.i.. 
 Error opening android camera for streaming video http://stackoverflow.com/questions/9098216/error-opening-android-camera-for-streaming-video  i  Camera.getCameraInfo i inf if inf.facing Camera.CameraInfo.CAMERA_FACING_FRONT  return Camera.open i  return null Upd2 yes explicit setting.. 
 Android :: Possible To Camera Capture Without A Preview? http://stackoverflow.com/questions/9744790/android-possible-to-camera-capture-without-a-preview  camIdx cameraInfo if cameraInfo.facing Camera.CameraInfo.CAMERA_FACING_FRONT  try  cam Camera.open camIdx  catch RuntimeException e  Log.e.. 
 Android Camera Preview Rotation http://stackoverflow.com/questions/10385147/android-camera-preview-rotation  case Surface.ROTATION_180 degrees 180 break 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.. 
 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  info new Camera.CameraInfo for int i 0 i Camera.getNumberOfCameras i  Camera.getCameraInfo i info if info.facing Camera.CameraInfo.CAMERA_FACING_FRONT  camera Camera.open i  defaultCameraId i    if camera null camera Camera.open  try camera.setPreviewDisplay surfaceHolder..  case Surface.ROTATION_180  degrees 180 break  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 .. 
 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  Constant.result 180 break case Surface.ROTATION_270 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.. 
 How to open “front camera” on android platform? http://stackoverflow.com/questions/2779002/how-to-open-front-camera-on-android-platform  for int camIdx 0 camIdx cameraCount camIdx Camera.getCameraInfo camIdx cameraInfo if cameraInfo.facing Camera.CameraInfo.CAMERA_FACING_FRONT  try  cam Camera.open camIdx  catch RuntimeException e  Log.e TAG Camera failed to open e.getLocalizedMessage   return cam.. 
 switch back/front camera on fly http://stackoverflow.com/questions/6599454/switch-back-front-camera-on-fly  swap the id of the camera to be used if currentCameraId Camera.CameraInfo.CAMERA_FACING_BACK currentCameraId Camera.CameraInfo.CAMERA_FACING_FRONT else currentCameraId Camera.CameraInfo.CAMERA_FACING_BACK camera Camera.open currentCameraId Code snippet for this method.. 
 How to capture photo automatically in android phone? http://stackoverflow.com/questions/7228607/how-to-capture-photo-automatically-in-android-phone  for int camIdx 0 camIdx cameraCount camIdx  Camera.getCameraInfo camIdx cameraInfo if cameraInfo.facing Camera.CameraInfo.CAMERA_FACING_FRONT  try  cam Camera.open camIdx  catch RuntimeException e  Log.i Camera failed to open e.getLocalizedMessage   return cam Thanks.. 
 Error opening android camera for streaming video http://stackoverflow.com/questions/9098216/error-opening-android-camera-for-streaming-video  inf new Camera.CameraInfo for int i 0 i Camera.getNumberOfCameras i  Camera.getCameraInfo i inf if inf.facing Camera.CameraInfo.CAMERA_FACING_FRONT  return Camera.open i  return null Upd2 yes explicit setting of format and encoders solved the trouble recorder.setOutputFormat.. 
 Android :: Possible To Camera Capture Without A Preview? http://stackoverflow.com/questions/9744790/android-possible-to-camera-capture-without-a-preview  for int camIdx 0 camIdx cameraCount camIdx Camera.getCameraInfo camIdx cameraInfo if cameraInfo.facing Camera.CameraInfo.CAMERA_FACING_FRONT  try  cam Camera.open camIdx  catch RuntimeException e  Log.e TAG Camera failed to open e.getLocalizedMessage   return cam.. 
 |