You're right. I added a simple cancel() method for now which closes the HttpUrlConnection. I decided to keep it simple for the moment but it would be nice for the ImageLoader class to dispatch progress and complete events.
On Jun 9, 4:05 pm, Streets Of Boston <flyingdutc...@gmail.com> wrote: > Thanks! > > But looking at your code, you can't stop an already ongoing download > (i.e. cancel a download that takes too long). > > I've written a similar helper class does the same, like AsyncTask, but > allows you to cancel or interrupt I/O operations immediately, e.g. > cancel the download of an image that takes too long. > > I have not yet put this class online, but i will soon. > > On Jun 9, 10:00 am, guojian <guojen...@gmail.com> wrote: > > > To make loading images from the web less of a pain, I created a little > > helper class > > > To load an image you simply call > > ImageLoader.getInstance().load(myImageView, "myimage.jpg", true); > > >http://wu-media.com/2009/06/android-imageloader-load-images-sequencia... > > > 1. It loads images sequentially > > 2. It has the ability to cache the loaded images > > 3. you can stop the downloads by calling clearQueue() > > 4. you can clear the cache by calling clearCache() > > > I hope somebody finds this useful, or if you have any suggestion on > > how i can make it better, leave me a comment :) > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---