With the following code shows a preview of the camera vertically and it\'s works.. BUT!! I get a photo in landscape! :(
How I can build it vertically? I\'ve the prev
You don't need actually to rotate bitmap. It is memory consuming/slow etc... Looks like it is better in your case(saving to file right after shot) to update Exif tags in a JPEG file, for example:
int degrees = 90;
ExifInterface exif = new ExifInterface(path);
exif.setAttribute(ExifInterface.TAG_ORIENTATION, String.valueOf(degrees));
exif.saveAttributes();