Code example for ExecutorService

Methods: submit

0
    } 
         
    private void queuePhoto(String url, ImageView imageView)
    { 
        PhotoToLoad p=new PhotoToLoad(url, imageView);
        executorService.submit(new PhotosLoader(p));
    } 
     
    private Bitmap getBitmap(String url) 
    { 
        File f=fileCache.getFile(url);
         
        //from SD cache 
        Bitmap b = decodeFile(f);
        if(b!=null)
            return b;
         
        //from web 
        try { 
            Bitmap bitmap=null;
            URL imageUrl = new URL(url);