Categories
How to download an image from a URL and make it a bitmap in kotlin?
var bitmap1: Bitmap? = null var url = "https://i.ibb.co/F3k0101/hero-man.png"
Answer the question
In order to leave comments, you need to log in
Use Glide .
I did it with Picasso. In Java, the code is simple:
Picasso.get().load("http://i.imgur.com/DvpvklR.png").into(imageView);
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question