0 votes
in Android by
Differentiate Activities from Services.

1 Answer

0 votes
by

Activities can be terminated or closed anytime the user wishes. On the other hand, services are designed to run in the background, and they can act independently.

Most of the services run continuously, irrespective of whether there are certain or no activities being executed.

Activities Services

They are designed to run in the foreground. These are mainly designed to run in the background. Foreground services are also available.

Used when the user interface is necessary. Used when the user interface is not necessary.

They are dependent. They act independently.

...