I use the camera API to take photos. The orientation of the preview(surfaceview) is ok. But when I view a photo that I've taken, it's the wrong orientation. So how can I fix it? I use the HTC sensation.
p.s. like this: When I take a photo in portrait, it displays at an angle of 90 degrees counter-clockwise.
When I take photo at an angle of 90 degrees counter-clockwise, it displays in portrait.