1. android create lib-project
2. place source in src/
3. add the build target to build.xml
<target name="jar"> <jar destfile="MyAndroidLib.jar" basedir="bin/classes/"> <!-- replace 'com' by what ever you are using --> <!-- as first part of the package name --> <!-- e.g. de, org, ... --> <!-- the ** is important to include the directory recursively --> <include name="com/**" /> </jar> </target>
4. ant debug/release
5. ant jar
6. you will find target jar in bin/