List of usage examples for android.media ExifInterface TAG_APERTURE_VALUE
String TAG_APERTURE_VALUE
To view the source code for android.media ExifInterface TAG_APERTURE_VALUE.
Click Source Link
From source file:freed.viewer.screenslide.ScreenSlideFragment.java
private void processExif(final File file) { FreeDPool.Execute(new Runnable() { @Override// w w w. j ava2s . c o m public void run() { try { final ExifInterface exifInterface = new ExifInterface(file.getAbsolutePath()); iso.post(new Runnable() { @Override public void run() { try { shutter.setText("S:" + exifInterface.getAttribute(ExifInterface.TAG_EXPOSURE_TIME)); } catch (NullPointerException e) { shutter.setVisibility(View.GONE); } try { fnumber.setText("f~:" + exifInterface.getAttribute(ExifInterface.TAG_F_NUMBER)); } catch (NullPointerException e) { fnumber.setVisibility(View.GONE); } try { focal.setText("A:" + exifInterface.getAttribute(ExifInterface.TAG_APERTURE_VALUE)); } catch (NullPointerException e) { focal.setVisibility(View.GONE); } try { iso.setText( "ISO:" + exifInterface.getAttribute(ExifInterface.TAG_ISO_SPEED_RATINGS)); } catch (NullPointerException e) { iso.setVisibility(View.GONE); } } }); } catch (NullPointerException | IOException ex) { Log.d(TAG, "Failed to read Exif"); } } }); }