I have a service that starts another remote service. when the second service have started, it binds to the first service using IPC, and all works great.
My question is, i would like the first service to be able to talk to the second service as well (right now, only the other way around is implemented). can i somehow do it with the same Binder? or should i bind the first service to the second one?
maybe there’s a way to make two services talk on the same connection somehow?
All help would be appreciated.
Vlad
If you need the first
Serviceto call methods on the secondService, then you’ll need to get aBinderfrom the secondService. If you just want to communicate, you could useBroadcastsand set up aReceiverin the firstService.