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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -