Android get Exif information issue -
in order exif information of image,i wrote codes below:
exifinterface exif = new exifinterface(path); string aaa= (exif.getattribute(exifinterface.tag_datetime));
i add read,write permission in androidmanifest.xml
<uses-permission android:name="android.permission.write_external_storage" /> <uses-permission android:name="android.permission.read_external_storage" />
now problem specific folder, such /storage/emultaed/0/pictures,/storage/emultaed/0/download, return values of exif.getattribute(...) null.
i wondering if there 3rd party lib can solve issue? help.
some pictures work fine - problem data, not code. suspect devices/applications encode exif data in non-standard way exifinterface cannot parse. can use exiftool dump exif, , modify , standardise it
Comments
Post a Comment