Code example for ExifInterface

Methods: saveAttributes, setAttribute

0
     */ 
    public void replaceExifTag(String tag, String value) {
        if (mExif == null) {
            loadExifData(); 
        } 
        mExif.setAttribute(tag, value);
    } 
 
    private void loadExifData() { 
        try { 
            mExif = new ExifInterface(mDataPath);
        } catch (IOException ex) {
            Log.e(TAG, "cannot read exif", ex);
        } 
    } 
 
    private void saveExifData() throws IOException { 
        if (mExif != null) {
            mExif.saveAttributes();
        } 
    } 
 
    private void setExifRotation(int degrees) {
        try {