views:

301

answers:

1

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

A: 

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").

CommonsWare
thanks.. so.. what's the code to do this? thanks
xger86x
`bindService()`
CommonsWare