Code example for ExifInterface

Methods: saveAttributes

0
        } 
    } 
 
    private void saveExifData() throws IOException { 
        if (mExif != null) {
            mExif.saveAttributes();
        } 
    } 
 
    private void setExifRotation(int degrees) {
        try { 
            degrees %= 360;
            if (degrees < 0) degrees += 360;
 
            int orientation = ExifInterface.ORIENTATION_NORMAL;
            switch (degrees) {
                case 0: 
                    orientation = ExifInterface.ORIENTATION_NORMAL;
                    break; 
                case 90: 
                    orientation = ExifInterface.ORIENTATION_ROTATE_90;