[android-developers] Re: Multiple Threads

2011-05-04 Thread Stefan
This sounds a little bit diffecult to I'm not very experienced in writing my own ASyncTask, or creating a custum handler. Isn't it possible to create a new thread withing the asynchtask. So the big task is plitted up in several smaller tasks. On 4 mei, 16:27, Satya Komatineni

[android-developers] Re: Multiple Threads

2011-05-04 Thread Stefan
The problem at this moment with the app is that the retrieval of the html code from the website takes a lot of time. When you start the app at this moment, you'ill have to wait 3 minutes for loading the website. That's not very user friendly, and I guess that downloading just a little bit html

Re: [android-developers] Re: Multiple Threads

2011-05-04 Thread Dianne Hackborn
This isn't really an Android-specific question -- you will probably get good answers just looking for ways in Java to do concurrent HTTP requests. On Wed, May 4, 2011 at 11:22 AM, Stefan stefankru...@hotmail.com wrote: The problem at this moment with the app is that the retrieval of the html

[android-developers] Re: Multiple Threads

2011-05-04 Thread Stefan
To do concurrent HTTP request I guess threads are the way to do that? Creating a thread within a thread results here in an Can't create handler inside thread that has not called Looper.prepare()error. And I cannot find another way without multiple threads. On 4 mei, 17:27, Dianne Hackborn

[android-developers] Re: Multiple Threads

2011-05-04 Thread Streets Of Boston
AsyncTasks are not threads. They are chunks of work (like getting a web-document) that are executed on a pool of (background) threads. Read the documentation of AsyncTask carefully. Figure out a way to have a pool of more than one background threads (happens 'automatically' for Android OS

[android-developers] Re: Multiple Threads

2011-05-04 Thread lbendlin
and once you have done all that you may notice no performance gain at all because all along the bottleneck was you phone's data connection speed... -- 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] Re: multiple threads problem, possible memory leak

2010-12-12 Thread Rustam Kovhaev
scratch that, I am simply tired for today ^) //service on destroy public void onDestroy() { handler.getLooper().quit(); } 2010/12/13 Rustam Kovhaev rkovh...@gmail.com Hello there, I have a service from which I constantly call another service(lets call it B service), the problem is that in

[android-developers] Re: multiple threads problem, possible memory leak

2010-12-12 Thread fernando
Hi It might be the case to use a stick service and keep the thread running. Refer the SyncManager service from the AOSP email application. Hope it helps On Dec 12, 2:31 pm, Rustam Kovhaev rkovh...@gmail.com wrote: scratch that, I am simply tired for today ^) //service on destroy public void