Making ImageGallery of private Images in S3 Client android

一个人想着一个人 提交于 2019-12-03 15:21:20

Latest Picasso version adopts setting network policies. Probably, you need to set NetworkPolicy.OFFLINE for the Picasso.Request builder:

Picasso.with(this)
            .load(s3Url)
            .networkPolicy(NetworkPolicy.OFFLINE)
            .into(imageView);

Regarding the caching, you might want to set expiration time to CacheControl of the Picasso OkHttpClient, to be same as the S3 links.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!