0 votes
in Android by
What are the differences between Service and Thread?

1 Answer

0 votes
by

The main difference between Service and Thread is given below:

Service Thread

Service is an application component that facilitates an application to run in the background in order to perform long-running operations without user interaction. A Thread is a concurrent unit of execution.

It exposes few functionalities to other applications by calling Context.bindService(). Google has brought in handlers and loopers into threads.

When an application is killed, service is not killed. When an application is killed, the thread is killed.

...