Adapting Library for Android
<p>The library given consists of several parts:</p>

<ul>
<li>a network module</li>
<li>a storage module</li>
<li>a 'controller' module</li>
</ul>

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

<p>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.</p>

<p>What is the 'Android Way' of doing this?</p>

<h2>Edit</h2>

<p>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 <em>POJOs</em> the storage module is registered at the network module.</p>

<p>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.</p>

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

<p>So ... how do i get my data from the service into activities?</p>
