Check out my github page for the CWAC project series - they all create JAR files for reuse in other projects.
In short, there is not much magic for simple JARs, except that you add the Android JAR to your build path to compile your code that references the Android API.
However:
- It is difficult to share resources. I am currently working on a solution for this.
- There may be components in the JAR (actions, services, etc.), but the applications themselves must still list these components in the manifest of these applications.
source share