public void writeToExif(final ExifInterface exif) {
        if (exif != null) {
            exif.setAttribute(ExifInterface.TAG_ORIENTATION, Integer.toString(getExifOrientation()));
        }
    }
Writes the orientation value represented by this class to the given exif instance
main/src/main/java/cgeo/geocaching/utils/ViewOrientation.java