Code examples for ExifInterface

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
120:	ExifInterface exif = new ExifInterface(fileName); 
121:	int rotation = exif.getAttributeInt(ExifInterface.TAG_ORIENTATION, 
Full Snippet Info
7
CodeRank
16:	ExifInterface exif = new ExifInterface(imgPath); 
17:	String rotationAmount = exif.getAttribute(ExifInterface.TAG_ORIENTATION); 
Full Snippet Info
7
CodeRank
48:	exif = new ExifInterface(filepath); 
-
53:	int orientation = exif.getAttributeInt(ExifInterface.TAG_ORIENTATION, -1); 
Full Snippet Info
7
CodeRank
88:	mExif.setAttribute(tag, value); 
-
101:	mExif.saveAttributes(); 
Full Snippet Info
6
CodeRank
99:	ExifInterface exif = new ExifInterface(path); 
-
102:	exif.setAttribute(ExifInterface.TAG_GPS_LATITUDE, latitudeStr); 
103:	exif.setAttribute(ExifInterface.TAG_GPS_LATITUDE_REF, latitude>0?"N":"S"); 
-
106:	exif.setAttribute(ExifInterface.TAG_GPS_LONGITUDE, longitudeStr); 
107:	exif.setAttribute(ExifInterface.TAG_GPS_LONGITUDE_REF, longitude>0?"E":"W"); 
-
110:	exif.saveAttributes(); 
-
113:	String exifLAT = exif.getAttribute(ExifInterface.TAG_GPS_LATITUDE); 
-
115:	String exifLONG = exif.getAttribute(ExifInterface.TAG_GPS_LATITUDE); 
Full Snippet Info
6
CodeRank
178:	int orientation = exif.getAttributeInt(ExifInterface.TAG_ORIENTATION, 1); 
-
193:	return new ExifInterface(getTempCaptureFile().getAbsolutePath()); 
Full Snippet Info
6
CodeRank
100:	ExifInterface exifInterface = new ExifInterface(filepath); 
101:	int exifRotation = exifInterface.getAttributeInt(ExifInterface.TAG_ORIENTATION,ExifInterface.ORIENTATION_UNDEFINED); 
Full Snippet Info
6
CodeRank
55:	ExifInterface mExifInterface = new ExifInterface(uri); 
56:	String str = mExifInterface.getAttribute("UserComment"); 
-
61:	mExifInterface.setAttribute("UserComment","2010:12:07 11:20:34, TAG1, TAG2"); 
62:	mExifInterface.saveAttributes(); 
Full Snippet Info
6
CodeRank
71:	ExifInterface exifIf = new ExifInterface(file.toString()); 
72:	int width = exifIf.getAttributeInt(ExifInterface.TAG_IMAGE_WIDTH, 0); 
-
75:	Log.i("CameraMapsTest", exifIf.toString()); 
-
77:	Log.i("CameraMapsTest", "long" + exifIf.getAttribute(ExifInterface.TAG_DATETIME)); 
78:	boolean success = exifIf.getLatLong(latLong); 
Full Snippet Info
6
CodeRank
163:	ExifInterface exif = new ExifInterface(_path); 
164:	int exifOrientation = exif.getAttributeInt( 
Full Snippet Info
6
CodeRank
244:	ExifInterface exifInterface = new ExifInterface(file); 
245:	exif[0] = exifInterface.getAttribute(ExifInterface.TAG_ORIENTATION); 
246:	exif[1] = exifInterface.getAttribute(ExifInterface.TAG_GPS_LATITUDE); 
247:	exif[2] = exifInterface.getAttribute(ExifInterface.TAG_GPS_LATITUDE_REF); 
248:	exif[3] = exifInterface.getAttribute(ExifInterface.TAG_GPS_LONGITUDE); 
249:	exif[4] = exifInterface.getAttribute(ExifInterface.TAG_GPS_LONGITUDE_REF); 
Full Snippet Info
6
CodeRank
75:	ExifInterface ei = new ExifInterface(photoUri.toString()); 
76:	Log.d("EXIF",ei.getAttribute(ExifInterface.TAG_DATETIME)); 
77:	Log.d("EXIF",ei.getAttribute(ExifInterface.TAG_FLASH)); 
78:	Log.d("EXIF",ei.getAttribute(ExifInterface.TAG_GPS_LATITUDE)); 
79:	Log.d("EXIF",ei.getAttribute(ExifInterface.TAG_GPS_LONGITUDE)); 
80:	Log.d("EXIF",ei.getAttribute(ExifInterface.TAG_IMAGE_LENGTH)); 
81:	Log.d("EXIF",ei.getAttribute(ExifInterface.TAG_IMAGE_WIDTH)); 
Full Snippet Info
6
CodeRank
242:	ExifInterface exif = new ExifInterface(imagePath); 
243:	orientation = exif.getAttributeInt(ExifInterface.TAG_ORIENTATION, -1); 
Full Snippet Info
6
CodeRank
69:	mExif.setAttribute(tag, value); 
-
82:	mExif.saveAttributes(); 
Full Snippet Info
6
CodeRank
50:	ExifInterface exifInterface = new ExifInterface(filePath); 
51:	int orientation = exifInterface.getAttributeInt(ExifInterface.TAG_ORIENTATION, ExifInterface.ORIENTATION_UNDEFINED); 
-
60:	exifInterface.setAttribute(ExifInterface.TAG_ORIENTATION, "0"); 
61:	exifInterface.saveAttributes(); 
Full Snippet Info
6
CodeRank
24:	exifFileInterface = new ExifInterface(filename); 
-
30:	exifFileInterface.setAttribute(ExifInterface.TAG_GPS_LONGITUDE, longString); 
31:	exifFileInterface.setAttribute(ExifInterface.TAG_GPS_LATITUDE, latString); 
-
36:	exifFileInterface.setAttribute(ExifInterface.TAG_GPS_LATITUDE_REF, "N"); 
-
38:	exifFileInterface.setAttribute(ExifInterface.TAG_GPS_LATITUDE_REF, "S"); 
-
43:	exifFileInterface.setAttribute(ExifInterface.TAG_GPS_LONGITUDE_REF, "E"); 
-
45:	exifFileInterface.setAttribute(ExifInterface.TAG_GPS_LONGITUDE_REF, "W"); 
-
50:	exifFileInterface.saveAttributes(); 
Full Snippet Info
6
CodeRank
184:	exif = new ExifInterface(filepath); 
-
189:	int orientation = exif.getAttributeInt( 
Full Snippet Info
6
CodeRank
24:	exifFileInterface = new ExifInterface(filename); 
-
30:	exifFileInterface.setAttribute(ExifInterface.TAG_GPS_LONGITUDE, longString); 
31:	exifFileInterface.setAttribute(ExifInterface.TAG_GPS_LATITUDE, latString); 
-
36:	exifFileInterface.setAttribute(ExifInterface.TAG_GPS_LATITUDE_REF, "N"); 
-
38:	exifFileInterface.setAttribute(ExifInterface.TAG_GPS_LATITUDE_REF, "S"); 
-
43:	exifFileInterface.setAttribute(ExifInterface.TAG_GPS_LONGITUDE_REF, "E"); 
-
45:	exifFileInterface.setAttribute(ExifInterface.TAG_GPS_LONGITUDE_REF, "W"); 
-
50:	exifFileInterface.saveAttributes(); 
Full Snippet Info
5
CodeRank