I am trying to use the picasso library to loading the image store in the mediastore. When I called load(imageview, callback), the picasso call onFail instead of onSuccess. H
val picasso = Picasso.Builder(context).listener(
object : Picasso.Listener{
override fun onImageLoadFailed(picasso: Picasso?, uri: Uri?, exception: Exception?) {
exception?.printStackTrace()
println("Picasso loading failed : ${exception?.message}")
}
}
).build()
picasso.load(imageUrl).into(imageView)