Reputation: 12434
This is a follow up question to this question:
Calling a service from an External JAR in Android
I am using Eclipse and I got a service which is defined in an external jar. The jar is in the Android Private Libraries in the project's folder.
The answer to the above question said I should define the service in the manifest even if its from an external Jar. My question is how to define something from an external jar in the manifest? I'm used to define a path from the project's src folder which is then simply the package hirerchy. What is the path I should define when the service is defined in the private libraries?
Upvotes: 1
Views: 1159
Reputation: 2130
You must declare any imported service or Activity being used by the app in the manifest. To refer them use the full qualifying package name, example if my imported jar/aar library package is : com.example.jar and there is a service in myPackage, called myService, the service would be defined like :
<service
android:name="com.example.jar.myPackage.myService"
...
... />
Upvotes: 2