views:

80

answers:

3

How to implement Multithreading in Android application so as to increase responsiveness of UI. ?

+2  A: 

UI in Android is already handled in a separate thread, so you don't need to worry about it. The faq has a section on Handling Expensive Operations in the UI Thread if that is what you need to solve.

aioobe
Will go through the link. Thanks
success_anil
At line mHandler.post... Application is stopping unexpectely .
success_anil
+1  A: 

I suppose you want to do some long and consuming task in the background so as not to lock the UI thread.

AsyncTask seems easier to use even though there are other approaches like using runnables and handlers.

primalpop
AsyncTask all the way
disretrospect
A: 

Actors or similar event-based, managed lightweight threads are nice to treat UI events in a low-overhead fashion.

Radtoo