是否可以从内部存储中获取图像的 EXIF 元数据?特别是坐标?
我存储了一个图像,并像这样检索它:
String directoryPath = android.os.Environment.getExternalStorageDirectory().toString()+"/tmp/photos/" + imgPath;
当我尝试获取图像的 EXIF
try {
ExifInterface exif = new ExifInterface(directoryPath);
Log.e("HAS LATIT == ", exif.getAttribute("TAG_GPS_ALTITUDE") != null ? "NOT NULL" : "NULL");
} catch (IOException e) { }
但没有“TAG_GPS_ALTITUDE”