I copy the image to a private directory, for example:
FileChannel source = null;
FileChannel destination = null;
source = new FileInputStream(sourceFile).getChannel();
destination = new FileOutputStream(destFile).getChannel();
destination.transferFrom(source, 0, source.size());
source.close();
destination.close();
.. but when I return it back to the Gallery untouched at a later time:
private void moveImageToGallery(Uri inUri) throws Exception {
MediaStore.Images.Media.insertImage(getContentResolver(), ImageUtil.loadFullBitmap(inUri.getPath()), null, null);
}
.. he seems to be losing his Exif data. Spinning no longer works. Is there a way to copy the image file and not lose this data? Thanks for any suggestions.
source
share