Difference between MainThread, UiThread, WorkerThread, BinderThread in Android Annotations

How I read android annotations for stream document

We have four types of threads,

  • @MainThread
  • @UiThread
  • @WorkerThread
  • @BinderThread

What are the differences?

+4
source share
1 answer

The differences are as follows:

  • @MainThread , the first run of the thread when the application starts,
  • @UiThread , run from MainThread for the user interface to work,
  • @WorkerThread , which are started when the programmer defines the thread
  • @BinderThread , uses for some kind of query () / insert () / update () / delete () methods in ContentProvider.
+7
source

All Articles