Android Basic usage


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);