title: Android Save Image Exif Information goes Wrong in Marshmallow 6.0.1
body: <p>In my custom camera, I need to save the orientation for a captured image. This code works perfectly for other android versions. But its not working in 6.0.1. The result which am getting is  wrong after saving the attributes to image file. </p>
  
  <pre><code>try {
      exif = new ExifInterface(pictureFile.getAbsolutePath());
      exif.setAttribute(ExifInterface.TAG_ORIENTATION, "" + orientation);
      exif.saveAttributes();
  } catch (IOException e) {
      e.printStackTrace();
  }
  </code></pre>