views:

58

answers:

3

Android "Service" is a process or a thread according to operating system?

+5  A: 

It is neither, any more than an activity is "a process or a thread".

All components of an Android application run inside a process and by default utilize one main application thread. You can create your own threads as needed.

CommonsWare
A: 

A Service can be implemented as a separate process depending on the requirement. Here is a good explanation when to implement the service as a separate process or as a component inside an existing app (Service with Activities in same process).

Vinay
A: 

Well, processes host services in the Android OS, so it's not a process. Maybe have a look at the definition of a Service for more details...

Brian Driscoll