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);
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.
}
});
Load an image, decode it into a bitmap and return the bitmap synchronously:
Bitmap bmp = ImageLoader.getInstance().loadImageSync(imageUri);