Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android service in library

i created a library with a service in that i want to be able to bind to in more than one apk.

This is in my libraries manifest

<service class=".service.MyService" android:permission="com.wissen.permission.MY_SERVICE_PERMISSION">
<intent-filter>
<action android:value="com.wissen.testApp.service.MY_SERVICE" />
</intent-filter>
</service>

and this is in my apk manifest

<uses-permission android:name="com.wissen.permission.MY_SERVICE_PERMISSION"></uses-permission>

and i of course added the lib to the apk. i keep on getting service not found (warning). What am i doing wrong.

i bind it this way

bindService(new Intent("com.wissen.testApp.service.MY_SERVICE"), conn, Context.BIND_AUTO_CREATE);

Solution:
I created aidl for these and its working fine now.

like image 711
Pintac Avatar asked Mar 22 '11 16:03

Pintac


1 Answers

I created aidl for these and its working fine now.

like image 157
Pintac Avatar answered Nov 01 '22 09:11

Pintac