在Android中使用Fresco + S3 [英] Using Fresco + S3 in Android

查看:73
本文介绍了在Android中使用Fresco + S3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一种方法来在我正在使用的Android应用程序的屏幕上显示几张(也许20-30张)图像.

I need a way to show several ( maybe 20-30 ) images on screen on an Android application i'm working on.

注意事项:

  • 我的图像存储在AWS S3中.
  • 使用RecyclerView实现显示这些图像的列表.

经过研究,我决定使用Fresco来显示和缓存这些图像,但是现在我意识到我需要上述S3图像中的Uri.

After some research, i've decided to use Fresco to show and cache these images, but now i realize that i need a Uri from said S3 images.

我该怎么做?

也许使用更新的TransferObserver.download();并且仅显示图像会更好?但同样,缓存和回收也有碍.

Maybe using the newer TransferObserver.download(); and just display the images is better? But again, caching and recycling gets in the way.

我是否缺少某些超级明显的东西?

Is there something super obvious im missing?

我尝试使用S3 GUI上给出的链接,但是我当然拒绝了访问.由于安全原因,我没有公开这些图像.

I've tried to use the link given at the S3 GUI but i get access denied, of course. I haven't made these images public because of security reasons.

推荐答案

Fresco确实支持内容提供商URI.因此,您可以编写自己的内容提供程序,从而包装一个Amazon TransferObserver.

Fresco does support content provider URIs. So you could write your own content provider that in turn wraps an Amazon TransferObserver.

这篇关于在Android中使用Fresco + S3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆