90 isn't a valid value - check the constants for ExifInterface to find
valid values

public static final int ORIENTATION_ROTATE_90
Since: API Level 5
Constant Value: 6 (0x00000006)


On Mar 4, 4:19 am, bizso09 <bitva...@gmail.com> wrote:
> This doesn't work. Any ideas why?
>
> ExifInterface exifInterface = new ExifInterface(filePath);
>
> String o1 = exifInterface.readAttribute(TAG_ORIENTATION); //o1 is "0"
>
> exifInterface.setAttribute(TAG_ORIENTATION, "90");
> exifInterface.saveAttributes();
>
> String o2 = exifInterface.readAttribute(TAG_ORIENTATION); //o2 is "90"
>
> // relaunch app, read attribute for same photo
>
> String o3 = exifInterface.readAttribute(TAG_ORIENTATION); //o3 is "0"
> again, should be "90"

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to