I’m testing my app on HTC Desire with Android 2.2. and it works exactly as I’d love to. I use Sherlock packages to have same style on older devices as on newer.
My AVD is set to use the latest android, and it also looks ok. Then I’ve placed it to Samsung Galaxy S2, and as I work with camera and gallery images, they are rotated wrong. It seams that something on Samsung (camera app, android it self) does not or it does check EXIF and my images are oriented wrong. Portrait images are loaded in landscape, and landscape images are loaded in portrait.
- I guess I need to check EXIF somehow and ignore it in order to load images as they are?
- Bigger problem is – how to know if there are any other devices (some HTC, some HUAWEI some whatsoever) that will do similar problem? I thought all android devices behave the same way beside having 4 screen size groups…
Tnx.
Without any code is hard to tell what’s going on.
The most simple way i’ve found is to read the EXIF information and check if the image needs rotation. To read more on ExifInterface class on Android:
http://developer.android.com/intl/es/reference/android/media/ExifInterface.html
That said, here is some example code:
If there is an error you will see the log “Error checking EXIF” on rotationForImage function.