Pages

Thursday 23 April 2015

Diffrence between Thread and Asynch task?

Thread

1)Process in execution is called Thread.
2)We can create thread by using Extending Thread or Implementing Runnable.
3)Thread ,we can use if we don't want UI mainly(Otherwise if you want then you have to use Handler to update UI).

AsynchTask

1)Enable proper and easy use of UI thread.
2)It mainly used to update the UI when task has been completed.
3)It can be achieve by using the methods available in AsynchTask.

                                  

No comments:

Post a Comment