I read this article to understand the difference between implicit and explicit broadcast. After going through this I'm getting confused with the concept of broadcast itself.
In general, the term broadcast
means to scatter/announce the information to a wider audience and whoever listens/receives the message can make use of it.
In the case of explicit broadcast when we know the component name (package name according to Java terms) and activity name (corresponding class name in Java terms) why shouldn't we invoke the Class.startActivity()
directly instead of configuring it to the manifest - delivering it to aosp and gaining the control of method to be invoked. I feel the purpose of the term broadcast itself is not satisfied here since we know to whom we are going to send (1-1).
Why does AOSP introduced broadcast when we have the direct control of invoking a method in Java? Is this to bring structure to an application - something like this?
EDIT :
I should have asked it more specifically like why do we need a broadcast when we are under the same process.