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 ...