private byte[] addExif(byte[] jpeg){
  ExifInterface exif=new ExifInterface();
  exif.addDateTimeStampTag(ExifInterface.TAG_DATE_TIME,System.currentTimeMillis(),TimeZone.getDefault());
  ByteArrayOutputStream jpegOut=new ByteArrayOutputStream();
  try {
    exif.writeExif(jpeg,jpegOut);
  }
 catch (  IOException e) {
    Log.e(TAG,"Could not write EXIF",e);
  }
  return jpegOut.toByteArray();
}

private byte [ ] addExif ( byte [ ] jpeg ) { ExifInterface exif = new ExifInterface ( ) ; exif . addDateTimeStampTag ( ExifInterface . TAG_DATE_TIME , System . currentTimeMillis ( ) , TimeZone . getDefault ( ) ) ; ByteArrayOutputStream jpegOut = new ByteArrayOutputStream ( ) ; try { exif . writeExif ( jpeg , jpegOut ) ; } catch ( IOException e ) { Log . e ( TAG , "Could not write EXIF" , e ) ; } return jpegOut . toByteArray ( ) ; }
adds basic exif data to the tiny planet image so it an be rewritten later .
