How are Activity intents and broadcast intents delivered and scheduled?
<p>I am reviewing some third-party code. </p>

<p>It has an Activity that in onCreate(), a  BroadcastReceiver is created and registered to a specific action.</p>

<p>In a separate method, startActivity() is called for the Activity, and then sendBroadcast() is called for the action, without waiting for the activity to start. BroadcastReceiver is never called in the many times I ran this.</p>

<p>I expected this would happen since the receiver is not yet registered at the time of the broadcast. The sendBroadcast() is run before the activity exists.</p>

<p>My question is if it was ever possible that this code would work properly. Perhaps on a dual-core device? I have been testing on single-core devices.</p>

<p>How are the intents scheduled for delivery to their recipient? </p>
