I can find some examples of creating a service, but it's hard for me to find a working example of how to send messages between Activity and a service. From what I can find, I think my options are to use Intents, AIDL, or use the service object itself for that matter .
In my case, my activity is the only action that will ever access the service, so a local service will be performed. When the activity is open, I want to see some status messages from the service that will arrive at a frequency of up to 20 Hz. Are there any restrictions on the number of messages per second that these communication methods will support? Basically, which method would be better for my situation?
Thanks.
source share