I have a class of service. I have exported this class to jar, and I am embedding jar in my client application.
If necessary, I call the service class. When I try to do this, I get the following error:
Unable to start service Intent {comp={com.sample.service/com.sample.service.serviceClass}} : not found
I have another class, besides the service class that I can get (create an object of this class), which is inside the same jar.
I feel like I missed something in my configuration or manifests or so.
Please help me identify the same. My code is below:
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Intent intent = new Intent () ; intent.setClassName("com.sample.service" ,"com.sample.service.serviceClass") ; this.startService(intent) ;
Manifest.xml client
<service android:name="com.sample.service.serviceClass" android:exported="true" android:label="@string/app_name" android:process=":remote"> <intent-filter><action android:name="com.sample.service.serviceClass"></action> </intent-filter> </service>
Thanks in advance,
Blame it
android android-intent service intentfilter
Vinay Aug 09 '10 at 11:02 2010-08-09 11:02
source share