Android-Universal-Image-Loader icon indicating copy to clipboard operation
Android-Universal-Image-Loader copied to clipboard

Support DocumentProvider

Open azibug opened this issue 12 years ago • 3 comments

The UIL may support the new api "DocumentProvider" for versions 4.4 (API level 19) and higher. eg:displayImage(Uri uri, ImageView imageView); More about "DocumentProvider": https://developer.android.com/guide/topics/providers/document-provider.html

azibug avatar Dec 10 '13 10:12 azibug

I didn't tested it but I think there is no difference from loading images from ContentProvider. Just use URIs like: "content://...".

nostra13 avatar Dec 12 '13 22:12 nostra13

The URIs like content://com.android.providers.media.documents/document/image:62 or content://com.google.driver.media.documents/images/image:62 It is dynamic.

azibug avatar Dec 13 '13 16:12 azibug

Er, i check the "content://"'s impl in UIL and the ContentResolver.openInputStream's impl in API 19, it can support DocumentProvider. The dynamic's URIs(content://com.google.driver.media.documents/images/image:62) will be handled in openInputStream(ContentResolver in API 19) using openAssetFileDescriptor. This issue should be closed, thanks.

azibug avatar Dec 14 '13 07:12 azibug