Import one project packages into another project packages in android

大城市里の小女人 提交于 2019-12-24 18:30:27

问题


A few months back , I'm create a project that's name is products in which i'm using spinner,imageswitcher,shopping cart and some other activities to create ecommerce site .Recently ,i.m create a new project that's name is scanner, in this i integrate a scanner using zxing libaray for scanning QR code.The problem is that i want to add all my product activities in this scanner project. When i copy all packages of product project and paste it into scanner project,the logcat show no error but console display that some features missing.I don't understand the problem,i checked all the activities. Is this possible to import one project into another project.How could i do this? Any help is highly appreciated.


回答1:


You should set products project to be a library project : Right click on project in Eclipse -> properties -> Android -> check isLibrary.

In your scanner project do: Right click on project in Eclipse -> properties -> Android -> Add -> select products.

Now your can use anything that's defined in products from scanner project.



来源:https://stackoverflow.com/questions/12600796/import-one-project-packages-into-another-project-packages-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!