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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -