Skip to content Skip to sidebar Skip to footer

Aquery (android Query) How To Load Images Actually

I am currently using Android Query library for image loading from server. MAIN PROB: I want to store images first time and then after i want to load images from cache. I have seen

Solution 1:

Finally got the solution with following code:

/* Settings of Image *///set the max number of concurrent network connections, default is 4
AjaxCallback.setNetworkLimit(8);

//set the max number of icons (image width <= 50) to be cached in memory, default is 20
BitmapAjaxCallback.setIconCacheLimit(50);

//set the max number of images (image width > 50) to be cached in memory, default is 20
BitmapAjaxCallback.setCacheLimit(50);

aq = new AQuery(context);

/* Getting Images from Server and stored in cache */
aq.id(holder.prodImageView).progress(convertView.findViewById(R.id.progressBar1)).image(holder.prodImagePath, true, true, 0, R.drawable.no_image, null, AQuery.FADE_IN);

Comment here if you didn't get and have any problem.

Thanks.

Post a Comment for "Aquery (android Query) How To Load Images Actually"