Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect Uri scheme for local app assets #37

Closed
davidschreiber opened this issue Mar 30, 2015 · 2 comments
Closed

Incorrect Uri scheme for local app assets #37

davidschreiber opened this issue Mar 30, 2015 · 2 comments

Comments

@davidschreiber
Copy link

Android assets may be accessed using an Uri of this format file:///android_asset/... but Fresco uses the asset://... scheme which leads to incompatibility with other solutions.

E.g. when switching using Square's Picasso with Fresco, all Uris need to be changed to work with Fresco.

@plamenko
Copy link
Contributor

file:///android_asset is only for use with WebView. For example, Universal Image Loader uses assets://image.png. So, I'm afraid there is no standard convention here. The fact that FileInputStream cannot open /android_asset/... is enough to disqualify the file scheme from being used for this purpose.

@anotherdev
Copy link

Fresco should support file:///android_asset/ instead of creating new scheme and don't documented clearly that asset:// scheme is vendor specific.

Picasso: square/picasso#332
Glide: http://stackoverflow.com/questions/29982341/using-glide-for-android-how-do-i-load-images-from-asset-and-resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants