Impossible de localiser la pièce pour imprimer la totalité du tableau de la méthode getTagName() car elle est sous la forme d'une balise et non d'une chaîne.Comment afficher la matrice de tag exif à travers cette bibliothèque extracteur de métadonnées?
https://drewnoakes.com/code/exif/
try {
InputStream is = new URL("http://www.dbituser1.dbitmobileappchallenge.com/uploadimage1/uploads/sample_0%20-%20Copy.jpg").openStream();
BufferedInputStream bis = new BufferedInputStream(is);
Metadata metadata = ImageMetadataReader.readMetadata(bis);
for (Directory directory : metadata.getDirectories()) {
for (Tag tag : directory.getTags()) {
//Toast.makeText(DetailsActivity.this, "" + tag.getTagName() +": " + tag.getDescription(), Toast.LENGTH_LONG).show();
if (tag.getTagName().contains("ISO")) {
TextView text = (TextView) findViewById(R.id.textView);
text.setText("ISO: " + tag.getDescription());
}
if (tag.getTagName().contains("Exposure")) {
Toast.makeText(DetailsActivity.this, "This is the Date: " + tag.getDescription(), Toast.LENGTH_LONG).show();
//TextView text = (TextView) findViewById(R.id.textView1);
//text.setText("Exposure: " + tag.getDescription());
}
}
}
} catch (ImageProcessingException e) {
} catch (IOException e) {
}