hi,
I have just found one google doc for ANR.i am using thread class to
retrieve data from server.and displaying it to app.
so i just want to that whether i should use Thread or should forget
the Thread because android is providing Asynctask.
can anyone elaborate this,pls?
--
You received
The only difference is that AsyncTask uses a thread pool to do its work. If
you use a thread, you will have a slight overhead of creating and starting
the thread. However, they both work relatively the same.
On Wed, May 18, 2011 at 11:38 PM, Hitendrasinh Gohil
hitendra.virtuei...@gmail.com
In my experience, (I have used both), you need to create a Hander object to
change something from the procedure that is running inside your Thread.
Whereas, if you use the AsycTask, there will be call backs to do UI
updations... I also agree with Miguel Morales.
Regards,
Saurav Mukherjee.
hi,
i have read this from google doc,ANR(Application not responding) happens
when ,
I)main thread(event thread/ui thread) doesnt respond to input events in
5 sec
ii)broadcast receiver doesnt finish in 10 seconds.
in my application flow is like
classA threadcallback to classA with datafrom
Have you read:
http://developer.android.com/resources/articles/painless-threading.html ?
On Wed, May 18, 2011 at 11:55 PM, Hitendrasinh Gohil
hitendra.virtuei...@gmail.com wrote:
hi,
i have read this from google doc,ANR(Application not responding) happens
when ,
I)main thread(event
5 matches
Mail list logo