Created
February 6, 2017 19:24
-
-
Save ebbnormal/e45ec9376abded9a6fc38b1dff2363a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (exif.getAllTags() != null) { | |
exif.writeExif(out, os); | |
} else { | |
ExifInterface exif2 = new ExifInterface(); | |
exif2.addDateTimeStampTag(exif.TAG_DATE_TIME_ORIGINAL, Calendar.getInstance().getTime().getTime(), TimeZone.getDefault()); | |
exif2.writeExif(out, os); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment