WHICH CLASSES CAN YOU USE FOR THREADING IN ANDROID?

Subject Android
Institute Ahsanullah Institute of Information and Communication Technology 2012

Android provide several different classes to handle threading:

-AsyncTask: One of the first classes introduced in Android since 1.6. It encapsulates a background process, that synchronizes with the main thread.

-Handler: a Handler object can send Messages and Runnable objects. Each Handler is always associated with a different Thread .

-Threads: this is the default Java class for Threads. It extends from java.util.concurrent. It is somehow a little bit antiquate, and there is some functionality lacking for modern software environments (i.e., no default pooling or handling configuration changes)

Login to post your comment.