public static boolean saveAttributes(final String filepath,Bundle bundle){
  ExifInterface exif;
  try {
    exif=new ExifInterface(filepath);
  }
 catch (  IOException e) {
    e.printStackTrace();
    return false;
  }
  for (  String tag : EXIF_TAGS) {
    if (bundle.containsKey(tag)) {
      exif.setAttribute(tag,bundle.getString(tag));
    }
  }
  try {
    exif.saveAttributes();
  }
 catch (  IOException e) {
    e.printStackTrace();
    return false;
  }
  return true;
}

public static boolean saveAttributes ( final String filepath , Bundle bundle ) { ExifInterface exif ; try { exif = new ExifInterface ( filepath ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; return false ; } for ( String tag : EXIF_TAGS ) { if ( bundle . containsKey ( tag ) ) { exif . setAttribute ( tag , bundle . getString ( tag ) ) ; } } try { exif . saveAttributes ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; return false ; } return true ; }
store the exif attributes in the passed image file using the tags stored in the passed bundle
