The library given consists of several parts:

* a network module
* a storage module
* a 'controller' module

They all rely on the former module (storage relies on network, controller relies on storage). Most of the functionality is exposed in controller module.

My first plan was to wrap the whole library in a Service that serves as a Adapter for the Android world. But I found out that Services do not have a way to get a result back. So there is no (reasonable) way to call some of the 'getStuff'-Methods in the Controller Module.

What is the 'Android Way' of doing this?

Edit
----

The network module has to run continuously in the background cause it handles some ongoing network stuff. (so this should be a service, right?) The storage module listens for events from the network and updates itself. As these are *POJOs* the storage module is registered at the network module.

In the Android Part of the Application i have several Activities. All of these need to access the storage module. But there is no way to get a reference to it cause it is in the Service part of the application.

I would wrap all required methods in Intent responses, but afaik Service Intents can not be called with a result.

So ... how do i get my data from the service into activities?