Rafa
Rafa

Reputation: 21

Image URL to create Bitmap android

I have a small problem, as I could convert a url from an image to a bitmap. The url string is obtained through a json that I download with Volley, and I need that bitmap to be able to give a personalized icon to a marker.

Upvotes: 0

Views: 451

Answers (2)

CommonsWare
CommonsWare

Reputation: 1007266

Volley supports loading images asynchronously to a bitmap.

Picasso supports loading images asynchronously to a bitmap.

Other image loading libraries may offer similar options, though since you already use Volley and Picasso, you may wish to stick with one of those.

Upvotes: 0

Swr7der
Swr7der

Reputation: 859

I think you can use Picasso Library here, and it will show the image with the given URL dynamically. There is much more benefits of using Picasso. Try that if it helps you.

And also there is no need to download the image to the user. It saves images cache to show the image if user returns in particular time-gap.

Upvotes: 1

Related Questions