What happens to an intent if it is broadcast with no registered receivers currently present? Is it waiting in a queue until someone can receive it or is it just gone?
Asked
Active
Viewed 575 times
1 Answers
0
It depends on how you send the broadcast. For example if the code says:
Intent intent = new Intent(AN_ACTION);
sendStickyBroadcast(intent);
The broadcast will be held by the system.
Whenever anyone registers to receive a sticky broadcast they receive the most recent one sent.
If the broadcast is not sticky, then, yes, it disappears if there are no registered receivers.

Dale Wilson
- 9,166
- 3
- 34
- 52
-
I actualy want to use sendOrderedBroadcast(). So i guess it will be gone with no memory issues, right ? – AsafK Dec 06 '13 at 21:58
-
This is what i was looking for. Thank you! – Serdar Samancıoğlu May 11 '18 at 12:53