I'm new to Android development and I'm confused about Service to Activity communication. I need to listen to a socket and when a packet is received, update something in the Activity. I'm planning on listening to the socket with a Service and want to tell the Activity when something has been received.
For now I just want my Service to send a message to my Activity every 5 seconds. When the Activity receives the message it prints it to a TextView.
I've looked at (Bound Services) but this appears to only be one way: an Activity calling methods in a Service. Do I need broadcasts? Aren't they for process to process communication?
Can anyone point me in the right direction? Thanks.