Search code examples
androidandroid-intentbroadcastreceiverintentfilter

Are Intents queued after being sent?


Consider the following scenario:

One Servicehas registered a BroadcastReceiverwhose IntentFilter has several actions. If one of such actions were to be received while another one is being processed, will it be queued or will it be aborted?


Solution

  • The Intent will be queued until it can be delivered. If your receiver takes too long, Android may decide to kill its process (but if this happens, the logcat output will be clear on the reason).