How to communicate back to a service from a broadcast receiver?
<p>Hope someone can help me out here.  I will try to be concise!</p>

<p>I have a widget which starts a service. The service registers two broadcast receivers.  I would like to send back intents from the receivers to the service, so that the service can react.</p>

<p>I believe I read somewhere that 'starting' the service multiple times works, e.g. do the following in the receivers:</p>

<pre><code>serviceIntent.setAction("me.SERVICE");
intent.putExtra("me.SERVICE", somedata);
context.startService(serviceIntent);
</code></pre>

<p>I remember reading (on some blog) that this won't start a new service, but will simply pass the intent to the already running service.  Is this correct?  Is it a bad way of doing it? Is there a better way?</p>

<p>Thanks very much!</p>

<p>Jack</p>
