Android : Image from android camera with right side up

on Sunday, November 2, 2014


I'm trying to show to the user image from camera with right side up - no regard to how he holds the phone.


My code is simple:



Intent cameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
cameraIntent.putExtra("return-data", true);
startActivityForResult(cameraIntent, CAMERA_RESULT);


Then I attach returned image to ImageView in onActivityResult.


I know how to rotate the image, but how can I know how user hold the camera when he took a picture?


0 comments:

Post a Comment