轉自:http://www.eoeandroid.com/thread-155425-2-1.html
參考:http://blog.csdn.net/netpirate/article/details/8079130
http://www.mielf.net/featherelf/simple-android-library-project
打包的項目作爲另一個項目的library。
具體的右擊項目,選properties---android---勾上library---確定,然後在你另一個項目裏選properteis----android----add library---選擇你剛剛生成的library---OK
注:
1.在新項目的 AndroidManifest.xml要添加引用的項目中用到的權限
2.新項目跟引用的項目的資源ID名不能有衝突