List of usage examples for android.media ExifInterface TAG_RESOLUTION_UNIT
String TAG_RESOLUTION_UNIT
To view the source code for android.media ExifInterface TAG_RESOLUTION_UNIT.
Click Source Link
From source file:Main.java
public static void removeExif(String path) { if (!TextUtils.isEmpty(path)) { return;/*from w ww .ja v a 2 s . c om*/ } ExifInterface exifInterface; try { exifInterface = new ExifInterface(path); } catch (IOException ignore) { return; } if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { exifInterface.setAttribute(ExifInterface.TAG_ARTIST, ""); exifInterface.setAttribute(ExifInterface.TAG_RESOLUTION_UNIT, "0"); exifInterface.setAttribute(ExifInterface.TAG_DATETIME_ORIGINAL, ""); exifInterface.setAttribute(ExifInterface.TAG_MAKER_NOTE, "0"); } if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { exifInterface.setAttribute(ExifInterface.TAG_DATETIME_DIGITIZED, ""); } exifInterface.setAttribute(ExifInterface.TAG_MAKE, ""); exifInterface.setAttribute(ExifInterface.TAG_MODEL, ""); exifInterface.setAttribute(ExifInterface.TAG_ORIENTATION, "0"); exifInterface.setAttribute(ExifInterface.TAG_DATETIME, ""); exifInterface.setAttribute(ExifInterface.TAG_GPS_LATITUDE, ""); exifInterface.setAttribute(ExifInterface.TAG_GPS_LONGITUDE, ""); exifInterface.setAttribute(ExifInterface.TAG_GPS_LATITUDE, ""); }