What is service in android?

A service is a component that runs in the background. It is used to play music, handle network transaction etc

The service runs in the background indefinitely even if application is destroyed.
Moreover, service can be bounded by a component to perform interactivity and inter process communication (IPC).
The android.app.Service is subclass of ContextWrapper class.

Note: Android service is not a thread or separate process.

No comments:

Post a Comment