© Peter Späth 2018
Peter SpäthPro Android with Kotlinhttps://doi.org/10.1007/978-1-4842-3820-2_12

12. Communication

Peter Späth1 
(1)
Leipzig, Germany
 

Communication is about sending data through component or app or device boundaries. A standardized way for the components of one or more apps to communicate with each other is by using broadcasts, which were discussed in Chapter 5.

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

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