title: Android service in library
body: <p>i created a library with a service in that i want to be able to bind to in more than one apk.</p>
  
  <p>This is in my libraries manifest</p>
  
  <pre><code>&lt;service class=".service.MyService" android:permission="com.wissen.permission.MY_SERVICE_PERMISSION"&gt;
  &lt;intent-filter&gt;
  &lt;action android:value="com.wissen.testApp.service.MY_SERVICE" /&gt;
  &lt;/intent-filter&gt;
  &lt;/service&gt;
  </code></pre>
  
  <p>and this is in my apk manifest</p>
  
  <pre><code>&lt;uses-permission android:name="com.wissen.permission.MY_SERVICE_PERMISSION"&gt;&lt;/uses-permission&gt;
  </code></pre>
  
  <p>and i of course added the lib to the apk. i keep on getting service not found (warning). What am i doing wrong.</p>
  
  <p>i bind it this way</p>
  
  <pre><code>bindService(new Intent("com.wissen.testApp.service.MY_SERVICE"), conn, Context.BIND_AUTO_CREATE);
  </code></pre>
  
  <p><strong>Solution:</strong><br>
  I created aidl for these and its working fine now.</p>