Curious to know how sendBroadcast works internally, and if someone could please explain that would be nice. Please point me to the actual implementation.
I was looking at android source
ContextWrapper.java contains the implementation for the abstract method of sendBroadcast(), which basically just calls the base implementation. But where is the actual implementation where sendBroadcast notifies all the registered BroadcastReceivers?
@Override
public void sendBroadcast(Intent intent) {
mBase.sendBroadcast(intent);
}
Edit: mBase is from Context class, which is an abstract class, and sendBroadcast was an abstract method definition there, without any implementation.
public abstract void sendBroadcast(Intent intent)
Here is the sendBroadcast implementation.