Skip to content Skip to sidebar Skip to footer

Change "Exif" Data Between OnPictureTaken And Write()?

I am developing an app for a custom android device. It is still early in the development and it is possible that the camera may physically be rotated 90 degrees to the rest of the

Solution 1:

The standard way of writing exif data in Android is by using the ExifInterface which sadly only works on files that have already been written to disk.

If you wish to do the exif write without using a library, then you would have to do it after your FileOutputStream is finished writing the file.

If you don't mind using a library, Sanselan (http://commons.apache.org/proper/commons-imaging/) might have the ability to do it to a byte[] array, but the documentation is pretty limited.


Post a Comment for "Change "Exif" Data Between OnPictureTaken And Write()?"