HI i have used the following device camera intent to capture and save the image in device storage:
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
fileUri = getOutputMediaFileUri(MEDIA_TYPE_IMAGE,lastChar);
intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri);
// Start the image capture Intent
startActivityForResult(intent, CAMERA_CAPTURE_IMAGE_REQUEST_CODE);
Everthing is just working fine , camera capturing the image ,saving it into the storage properly, but when i am trying to view the image by fetching image uri from storage and displaying it in the imageview.
Image angle changing all the time.
for Rear camera captured image rotation angle is 90 degree and for front camera capture image rotation angle is 270 degree.
i have added 90 degree rotation to all images , that resolving the rear camra problem , but front camera captured image still have the 180 degree rotation .
thanks in advance , please help me sorting out this issue
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…