Create class
ExifInterface exif = null; exif = new ExifInterface("/sdcard/test.jpg");exsample getting attribute
for string
Log.d("test", "FNumber=" + exif.getAttribute("FNumber"));for int
Log.d("test", "Flash=" + exif.getAttributeInt("Flash", 0));for double
Log.d("test", "FocalLenght=" + exif.getAttributeDouble("FocalLenght", 0));It is possible to get thumbnail
if (exif.hasThumbnail()) { outputFile(exif.getThumbnail()); }source code here
0 件のコメント:
コメントを投稿