简体   繁体   English

在Android中使用Fresco + S3

[英]Using Fresco + S3 in Android

I need a way to show several ( maybe 20-30 ) images on screen on an Android application i'm working on. 我需要一种方法来在我正在开发的Android应用程序的屏幕上显示几张(也许20-30张)图像。

Considerations: 注意事项:

  • My images are stored in AWS S3. 我的图像存储在AWS S3中。
  • The list that displays these images is implemented using RecyclerView. 显示这些图像的列表是使用RecyclerView实现的。

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. 经过一些研究,我决定使用Fresco来显示和缓存这些图像,但现在我意识到我需要上述S3图像中的Uri。

How can i accomplish this? 我怎样才能做到这一点?

Maybe using the newer TransferObserver.download(); 也许使用更新的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? 有什么超级明显的我失踪吗?

I've tried to use the link given at the S3 GUI but i get access denied, of course. 我试图使用S3 GUI上给出的链接,但是我当然拒绝了访问。 I haven't made these images public because of security reasons. 由于安全原因,我没有公开这些图像。

Fresco does support content provider URIs. Fresco确实支持内容提供商URI。 So you could write your own content provider that in turn wraps an Amazon TransferObserver. 因此,您可以编写自己的内容提供程序,从而包装一个Amazon TransferObserver。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM