I am trying to upload an image stored on aws S3 to my Android application using Picasso, but I get an empty image without errors in my logarithm and nothing for me from general debugging around the corresponding lines of code. We have private access to images, so the image URL cannot work in the browser. I need to display an image in my Android application using Picasso. but it does not work.
My code snippet below
new Picasso.Builder(getApplicationContext()).downloader(new S3Downloader(getApplicationContext(), s3Client, bucket))
.build()
.load("https://s3-ea-east-8.amazonaws.com/music/MusicApp_3.jpg")
.placeholder(R.drawable.img_placeholder)
.memoryPolicy(MemoryPolicy.NO_CACHE)
.networkPolicy(NetworkPolicy.NO_CACHE)
.into(imageView);
When using the above code, the image is displayed only for the first time after installing the application. next time its only display of a placeholder image
I use this library to display an image.
Picasso, "private" url.