Reputation: 4037
Is a "Service" in android same as a separate thread ?
Upvotes: 2
Views: 1024
Reputation: 5244
A Service is not a separate process. The Service object itself does not imply it is running in its own process; unless otherwise specified, it runs in the same process as the application it is part of. A Service is not a thread. It is not a means itself to do work off of the main thread (to avoid Application Not Responding errors).
Upvotes: 1
Reputation: 64622
From Service javadoc:
Note that services, like other application objects, run in the main thread of their hosting process.
So the answer is No.
Upvotes: 4