Skip to content Skip to sidebar Skip to footer

What Is The Best Way To Get An Image From Url To Imageview In Android

I am using a method to get the Image from URL when a button is clicked but it gets too much time, about 4-5 seconds to show an image sized only 6 kb using 3G not wi-fi. My method

Solution 1:

imageView.setImageDrawable(Drawable.createFromStream((InputStream)new URL(url).getContent(), "src"));

Post a Comment for "What Is The Best Way To Get An Image From Url To Imageview In Android"