Loading image from url using AQuery

L

Download android-query.jar from below link:

http://www.java2s.com/Code/Jar/a/Downloadandroidqueryfull0243jar.htm

 

Add following code where you want to load image :

public ImageLoader imageLoader;

imageLoader = new ImageLoader(this);

AQuery androidAQuery=new AQuery(getApplicationContext());

androidAQuery.id(ImageView).image(url, true, true, 100,default_pic);

 

Note: if you dont want to store image in cache memory set true parameters to false.

 

 

About the author

Ankita Deshmukh
By Ankita Deshmukh

Category