title: Change "Exif" data between onPictureTaken and write()?
body: <p>I am developing an app for a <em>custom</em> android device. It is still early in the development and it is possible that the camera may physically be rotated 90 degrees to the rest of the device. This means that there is scope for great confusion between portrait and landscape for any images it takes. For this reason I would like absolute control over the Exif data in any images that the camera takes. The portrait vs landscape information in the camera parameters may be incorrect. For this reason I would like to be able to force a change in the Exif data inside onPictureTaken, before the image is saved. Is this possible, and if so how?</p>
  
  <p>I am struggling because examples of playing with exif data seem to either work by changing camera parameters, or by working on an already saved file - so that's either too early or too late!</p>
  
  <pre><code>    public void onPictureTaken(byte[] jpg_data, Camera camera)
      {
          // can I change exif data here?
  
          try 
          {       
              FileOutputStream buf = new FileOutputStream(filename);
              buf.write(jpg_data);
              //... etc.
  </code></pre>
  
  <p><strong>EDIT:</strong> Maybe I am misunderstanding something here... is there Exif data already contained within the jpg_data that gets passed to onPictureTaken? Or is it optionally added?</p>