21 Integer flash =
r.get(CaptureResult.FLASH_STATE);
22 if (flash !=
null && flash == CaptureResult.FLASH_STATE_FIRED)
25 Long exposureTime =
r.get(CaptureResult.SENSOR_EXPOSURE_TIME);
26 if (exposureTime !=
null)
27 mExposureTime = exposureTime/1000000000;
28 mFocalLength =
r.get(CaptureResult.LENS_FOCAL_LENGTH);
35 exif =
new ExifInterface(
path);
36 }
catch ( IOException e ) {
37 Log.e(
"QtExifDataHandler",
"Cannot open file: " +
path +
"\n" + e);
40 exif.setAttribute(ExifInterface.TAG_FLASH, String.valueOf(mFlashFired));
41 exif.setAttribute(ExifInterface.TAG_EXPOSURE_TIME, String.valueOf(mExposureTime));
42 exif.setAttribute(ExifInterface.TAG_FOCAL_LENGTH, String.valueOf(mFocalLength));
43 exif.setAttribute(ExifInterface.TAG_MODEL, mModel);
46 exif.saveAttributes();
47 }
catch ( IOException e ) {
48 Log.e(
"QtExifDataHandler",
"Cannot save file: " +
path +
"\n" + e);