List of usage examples for android.media ExifInterface TAG_F_NUMBER
String TAG_F_NUMBER
To view the source code for android.media ExifInterface TAG_F_NUMBER.
Click Source Link
From source file:freed.viewer.screenslide.ScreenSlideFragment.java
private void processExif(final File file) { FreeDPool.Execute(new Runnable() { @Override/*from ww w .ja v a2 s .co 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"); } } }); }