© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
P. SpäthPro Android with Kotlinhttps://doi.org/10.1007/978-1-4842-8745-3_4

4. Services

Peter Späth1  
(1)
Leipzig, Germany
 

Services are components running without a user interface apart from notifications in the status bar or per Toast and with a conceptual affinity toward long-running processes. Services can be started by apps , or they can be bound to by apps, or both.

Services come in two flavors: foreground services and background services . While at first glance it seems to be a contradiction speaking of “foreground” services, since so many people tend to tell you that “services run in the background,” foreground services do actually exist, and the ...

Get Pro Android with Kotlin: Developing Modern Mobile Apps with Kotlin and Jetpack 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.