Controlling the camera to take pictures in portrait doesn't rotate the final images
问题 I\'m trying to controlling the Android camera to take pictures in a portrait app, but when I save the picture, it\'s in landscape. I\'ve rotated the image 90 grades with setCameraDisplayOrientation() method, but doesn\'t work. Then I\'ve found this post but the TAG_ORIENTATION is 0 (undefined). If I catch this value and apply a rotation value, doesn\'t work either. How I can take a photo in portrait and save it with a good orientation? /** Initializes the back/front camera */ private boolean