Binding: if I need to change many service variables or get values โโfrom the service in different cases. Thus, you have access to memory for access to memory. Or, if I need to constantly get values โโfrom the service, and it is easier to control the exact time on the one hand. Linking should be more effective if you have a lot of posts. (The Android documentation provided an example of an example of a real-time server client)
Broadcast: if many variables change in my activity or my service, but I can always specify a point and send relatively categorized messages sent to respected recipients. Timing here may be a bit, but you can receive messages in the queue. This approach is suitable for tasks such as long-term periodic updates, etc.
source share