Is it possible to define a service in a libraries manifest without also defining it in the hosts manifest?
<p>I have a library that contains a subclass of the Android Application class. The sub-class contains a method that launches a service (also contained in the library project).</p>

<p>When I include the library in my host application, the activity manager complains that it is unable to start the service intent (not found).</p>

<p>The code structure is:</p>

<h3>Libraries manifest:</h3>

<pre><code>&lt;service name="com.my.project.MyService" /&gt;
</code></pre>

<h3>Application subclass within library:</h3>

<pre><code>Intent intent = new Intent(this, MyService.class);
startService(intent);
</code></pre>

<p>I can resolve the issue by defining the service again in the host applications manifest; However, I would prefer not to impose this requirement on developers using the library.</p>

<p>My question is, can I avoid the requirement for referencing the libraries service in the hosts manifest?</p>
