0 votes
in Android by
What are differences between 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.

ActivitiesServices
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.

Related questions

0 votes
asked Oct 15, 2022 in Android by AdilsonLima
0 votes
asked Jan 1 in Android by DavidAnderson
...