Send data from activity to running service
I have a short question. How can I send data from an activity to an already running service? The approach is as following, I have a service running in the background, which is starting a new activity that is just showing an input window. And now I want to send the typed data back to the service. How can this be done? Thanks in advance for helping! Best regards Tobi Are you aware of onBind method of Service class? 来源: https://stackoverflow.com/questions/6225157/send-data-from-activity-to-running-service