https://kotlinlang.org logo
#android
Title
# android
d

Diayan siat

07/08/2020, 5:40 PM
Hi guys can someone help me, I have been trying to load an image from a url without an extension and haven't had any success. this is what I have: val url ="https://unsplash.com/photos/D8LcRLwZyPs"
Copy code
Picasso.get()
    .load(url)
    .fit()
    .centerCrop()
    .into(imageView)
but this does not work
d

Diayan siat

07/08/2020, 5:47 PM
is there anyway i could get the image from it?
b

Brian

07/08/2020, 5:50 PM
i suppose you could parse the html to find the img tag and read the srcset
👍 1
d

Diayan siat

07/08/2020, 6:38 PM
thank you
h

Hannan Shaikh

07/09/2020, 5:58 AM
Open image in new tab than copy that address