I am developing a project in which I need to download some images from the server. I tried these 3 methods.
Picasso:
Picasso.with(context).load(image).into(holder.image);
Glide:
Glide.with(context).load(image).into(holder.image);
Volley:
imageLoader.get(image, new ImageLoader.ImageListener() { @Override public void onResponse(ImageLoader.ImageContainer response, boolean isImmediate) { holder.image.setImageBitmap(response.getBitmap()); } @Override public void onErrorResponse(VolleyError error) { } });
Undoubtedly, all of these methods work very well with a fast Internet connection. but in 2G It takes too much time to download a 20kb - 25kb image. I also tried resizing the image and all that. But this does not work. I saw an application such as Amazon or Flipkart, or any e-commerce application that these applications work very well in a slow Internet connection, and dowanloads all the images in good resolution as well. So, I want some expert solutions on this issue.
source share