1.1 Prepare source code
1.1.1 Create an Android project
1.1.2 Create source code, and fix all bug
1.1.3 remove AndroidManifest.xml
1.1.4 remove res/drawable/icon.png
1.2 Export library
1.2.1 On Package Explorer of Eclipse, right-click created project, and select Export
1.2.2 Select Jave -> JAR file, then press \”Next\”
1.2.3 Select resources to export, then press \”Next\”
1.2.4 Press \”Next\”
1.2.5 Press \”Finish\”
Then the library is created.
(Reference: Eclipse export jar files http://hi.baidu.com/etrigger/blo … 8b2fb2d0a2d3ad.html)
2, Import Library
You can use a third party JAR in your application by adding it to your Eclipse project as follows:
In the Package Explorer panel, right-click on your project and select Properties.
Select Java Build Path, then the tab Libraries.
Press the Add External JARs… button and select the JAR file.
Alternatively, if you want to include third party JARs with your package, create a new directory for them within your project and select Add Library… instead.
It is not necessary to put external JARs in the assets folder