I'm making a app which got it's data from parsing a website, and I
have to download around 100 webpages.
This is a time consuming task, so I created a AsyncTask for
downloading the data, so I can show a Loading message on the UI
Thread.
Only problem is, that the 100 webpages are now downloaded
An AsyncTask may be doing its work with a single worker thread. You
may want to download the sourcecode of AsyncTask and alter it so that
a pool of threads can do the work to speed up.
This is just thinking aloud.
Or write your own handler that spawns multple threads and have the
handler report
On Wed, May 4, 2011 at 9:03 AM, Stefan stefankru...@hotmail.com wrote:
Only problem is, that the 100 webpages are now downloaded after each other.
Is there a way to download the webpages at the same time?
First question: what is the purpose of doing them all at once?
Hello there,
I have a service from which I constantly call another service(lets call it B
service),
the problem is that in B service I have looper which processes two Runnables
and when I stop B service, thread stays running, wouldn't die
and when I call B service again I have two thread already
4 matches
Mail list logo