I don’t know if i’m doing it right or not.
I created a service importing the android.jar library file. and then created my own jar of that service.
Now when i include this jar file in anyother android project, adds its entry in manifest, starts it with
startService(new intent(getApplicationContext(),MyService.class));
Nothing happens.It doest not starts and no errors/warning :s
What i’m trying to achieve is that: creating a library of my service which i can easily use in many of my other apps or distribute it to other vendors to embed in their apps easily. Tell if i’m doing it right or suggest any other way.
Thanks
You will still need to add the service to your manifest of the application.
http://developer.android.com/guide/topics/manifest/service-element.html
If in a lib project or jar, I would try/recommend full package names
Hope that helps.