question: public static long writeFile ( String path , byte [ ] jpeg , ExifInterface exif ) throws IOException { if ( ! createDirectoryIfNeeded ( path ) ) { Log . e ( TAG , "Failed to create parent directory for file: " + path ) ; return - 1 ; } if ( exif != null ) { exif . writeExif ( jpeg , path ) ; File f = new File ( path ) ; return f . length ( ) ; } else { return writeFile ( path , jpeg ) ; } }
target:  Writes the JPEG data to a file. If there's EXIF info, the EXIF header will be added.