I've got a listview with the list of some user's facebook friends, with each row showing the name and the picture of the friend. To get the picture from Facebook I launch a thread using ASyncTask, following Gilles Debunne's post "Multithreading For Performance".
When I scroll down the list until the end, the number of threads launched can be huge, which makes everything very slow until all threads finish their task.
How can I limit the number of threads?
Thanks
Julien