Metadata metadata = JpegMetadataReader.readMetadata(imageFile); for(Directory directory : metadata.getDirectories()){ for(Tag tag : directory.getTags()){ Log.e("tag", "name=" + tag.getTagName() + "desc=" + tag.getDescription()); } }
this code can't print gps info , i use a picture have location info
Metadata metadata = JpegMetadataReader.readMetadata(imageFile); for(Directory directory : metadata.getDirectories()){ for(Tag tag : directory.getTags()){ Log.e("tag", "name=" + tag.getTagName() + "desc=" + tag.getDescription()); } }
this code can't print gps info , i use a picture have location info