Code example for ExecutorService

Methods: submit

        return null; 
    private void queuePhoto(URL url, ImageView imageview) {
        final ImageToLoad p = new ImageToLoad(url, imageview);
        mExecutorService.submit(new ImageLoader(p));
    boolean imageViewReused(ImageToLoad imagetoload) {
        final Object tag = mImageViews.get(imagetoload.imageview);
        if (tag == null || !tag.equals(imagetoload.source)) return true;
        return false; 
    // Used to display bitmap in the UI thread 
    private class BitmapDisplayer implements Runnable {
        Bitmap mBitmap;
        ImageToLoad mImageToLoad;