Cross App callback mechanism
<p>I have a requirement that is not trivial to solve, at least for someone who is not at professional level
in Android development I think.</p>

<p>I am developing an API that stores user request (GET, PUT, POST, DELETE).
Those request can be issued by any App that uses my API and  are stored in a SQLite DB
that belongs to my Manager App (the API exposes a content provider for this)
which deals with maintaining different users' accounts
and queuing all requests and executing them when there is network available.
Each request is associated to it's owner (user id) and source (App package).</p>

<p>The requests are executed when there is network coverage which, in my specific context,
will happen mostly when the Apps that generated the request are switched off.</p>

<p>The request are executed by an IntentService which is fired when network is connected.</p>

<p>Now the problem:</p>

<p>How can this IntentService update each App information using their business logic when
the applications are offline?</p>

<p>I thought about having in the API a base class that would have to be extended by the Apps'
developers and in that class they would implement the parsing of HTTP responses (which I get for them) accordingly to
their App's business logic.
But now again how can I invoke that code for parsing responses from within my intent service which belongs to
my Manager App.</p>

<p>Thank you all in advance,</p>

<p>Oleksandr</p>
