user1870797
user1870797

Reputation: 121

What is the common way to get images from urls in android application

I see a lot of android applications just look like html pages, containing many images here and there. But I don't know usually how these applications get their images to render. Do they get images through url. I found some posts on the internet suggested to use AsyncTask to download image through a HttpURLConnection . But I think AsyncTask is a little bit too complicated which involves too much code. Can anyone recommend me a simple,brief and may be also standard approach to get images to render in android applications?Any help is much appreciated!

Upvotes: 1

Views: 42

Answers (2)

Ajinkya S
Ajinkya S

Reputation: 570

I will suggest using glide as it is lightweight and easy to use.

Glide

And also has its own many features.

Upvotes: 1

Francesc
Francesc

Reputation: 29260

Use an image loading library, like Glide (https://github.com/bumptech/glide), Picasso (http://square.github.io/picasso/) or Fresco (https://github.com/facebook/fresco) among others.

Upvotes: 2

Related Questions