Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2091428
  • 博文数量: 413
  • 博客积分: 10926
  • 博客等级: 上将
  • 技术积分: 3862
  • 用 户 组: 普通用户
  • 注册时间: 2006-01-09 18:14
文章分类

全部博文(413)

文章存档

2015年(5)

2014年(1)

2013年(5)

2012年(6)

2011年(138)

2010年(85)

2009年(42)

2008年(46)

2007年(26)

2006年(59)

分类: Java

2009-02-12 17:46:05

  1. Export Library
    • Prepare source code
      • Create an Android project
      • Create source code
      • Make sure the project can be built (Need to fix all bug)
    • Export library
      • On Package Explorer Panel of Eclipse, right-click the project, and select Export
      • Select Jave -> JAR file, then press "Next". At this time a dialog pops up.
      • On the right panel of "Select the resources to export:" group, unselect all items (such as .classpath, .project, AndroidManifest.xlm, default.properties); you may need to expand the left project dir, and unselect incorresponding folders/files, such as res, assets, etc. Then press "Next"
      • Press "Next"
      • Press "Finish"

        Then the library is created.
        (Reference: Eclipse export jar files http://hi.baidu.com/etrigger/blog/item/e1fed134468b2fb2d0a2d3ad.html)
    • xxx
  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.
    (Reference: )
  3. xxx
阅读(3198) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~