I have a simple view that lets the user take a photo from the camera and display it after.
When using the same application on Nexus one, no matter what state the phone is when I actually take the picture, it will always shows correctly (so if i take a picture of someone's face, I can see it fine no matter what position the phone was in when I took the picture)
However, doing the same thing on the Nexus S (same code), unless I take the picture in portrait state, rotated to the left, the picture will rotate and show in different angles (upseide down, laying down etc.)
Checking the ratio of the pic won't help since it can be portrait but will show upside down!
Any idea how to tackle this?
Ok I found a solution, you need to check the Exif data the picture and look at the orientation property, then rotate the image accordingly, a good package for Exif can be found here: http://code.shichiseki.jp/as3/ExifInfo/
For Nexus one, the orientation property does not exists, so this will be a good check if you need to rotate your image or not.
Hope this will help someone in the future...