When I load an image frome the media gallery into a Bitmap, everything works fine, except that pictures that were shot with the camera while holding the phone vertically, are rotated so that I always get a horizontal picture even though it appears vertical in the gallery. Why is that and how can I load it correctly?
+2
A:
Have you looked at the EXIF data of the images? It may know the orientation of the camera when the picture was taken.
James
2010-09-05 22:03:38
You're right, that was of course the solution. I'm gonna post my code as an example in a separate answer, later, but I mark this one as accepted because it got me on the right track.
Manuel
2010-09-08 21:39:03