Android Universal Image Loader Basic usage

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

  1. Load an image, decode it into a bitmap, and display the bitmap in an ImageView (or any other view which implements the ImageAware interface):

    ImageLoader.getInstance().displayImage(imageUri, imageView);
    
  2. Load an image, decode it into a bitmap, and return the bitmap to a callback:

    ImageLoader.getInstance().loadImage(imageUri, new SimpleImageLoadingListener() {
        @Override
        public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {
            // Do whatever you want with the bitmap.
        }
    });
    
  3. Load an image, decode it into a bitmap and return the bitmap synchronously:

    Bitmap bmp = ImageLoader.getInstance().loadImageSync(imageUri);
    


Got any Android Question?