© 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_13

13. Communication

Peter Späth1  
(1)
Leipzig, Germany
 

Communication is about sending data through component or app or device boundaries. A standardized way of components of one or more apps communicating with each other is using broadcasts, which we talked about in Chapter 5.

Another possibility for inter-app communication on one device is using ResultReceiver objects, which are passed by Intents. Despite their name they can not only be used to send data back to an invoker when an invoked component has done its work, but also anytime while it is alive. We used them at a couple of places ...

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.