开发者

Send data from activity to running service

开发者 https://www.devze.com 2023-03-10 08:03 出处:网络
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

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?

开发者_如何学Python

Thanks in advance for helping! Best regards Tobi


Are you aware of onBind method of Service class?

0

精彩评论

暂无评论...
验证码 换一张
取 消