tags:

views:

187

answers:

3

The Android doc says "Like activities and the other components, services run in the main thread of the application process."

Is the main thread here the same thing as UI thread?

+1  A: 

Looks like it. Quoted from http://developer.android.com/resources/articles/painless-threading.html: "When an application is launched, the system creates a thread called "main" for the application. The main thread, also called the UI thread..."

Andy Zhang
+1  A: 

The "main application thread" is sometimes called the "UI thread".

CommonsWare
A: 

Every Activity has its own UI thread. As soon as the VM boots up, System Server is started by the Zygote. All other services like Activity Manager Service are started in new threads by the System Server.

Thanks Rajdeep Dua

Rajdeep Dua