Bound Android services

Our application components can bind to a service and trigger different tasks to be executed. Interacting with a service in Android is very simple. A component binds to a service and, as long there is at least one such component, the service keeps running. When there are no components bound to a service, the service is destroyed.

It is possible to create a background service that is running in the background and have the ability to bind to it.

Get Mastering Android Development with Kotlin now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.