Hi, i have a service running in background. I start it from an Activity, but i want to recovery an instance of that service from other activity (in the same app) in order to call one method. Is it possible?
Thanks
Hi, i have a service running in background. I start it from an Activity, but i want to recovery an instance of that service from other activity (in the same app) in order to call one method. Is it possible?
Thanks
There is only one instance of the service, at most. You cannot have two instances. Hence, just have the second activity bind to the service ("recovery an instance").