I\'m working on establishing a two-way communication between an Activity and a Service which runs in a different process.
Querying the process from the Activity is n
You have to use BroadcastReceiver
to receive intents, and when you want to communicate simply make an Intent with appropriate values.
This way you should be able to make a 2-way communication between any component.
Either use BroadcastReceiver or have the Activity register a callback or listener object that the Service calls on key events. The links above are to book example projects demonstrating each of those techniques.
I think you should have the BroadcastReceiver
start your activity again with the result in the Intent.
Or you could use AIDL about AIDL. The samples also have an (multiple?) example how to use AIDL and services. But AIDL
might be to much of a hassle for your purpose.