Vinay S wrote:
> I have created a small util which is a service, I would like to reuse
> this util in my future projects.
> 
> I have exported /src /gen folders to jar. I have skipped, /res folder
> and AndroidManifest.xml files.
> 
> I have tried including this in my new app activity and reuse the
> service. But I get the error message "Unable to start service Intent
> ".
> 
> I have enclosed the Manifest XML and outline of my project.
> 
> My Questions are:
> 
> 1. Have I exported the right files to JAR?

No. JAR files hold compiled classes, more so than source code. I am
assuming this is what you meant, given that you didn't have compilation
errors.

> 2. Any other information needs to be added in my AndroidManifest.XML
> (in App, not in Service) to reuse the service provided by the JAR.

You do not have your service declared in your manifest for your application.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.0
Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to