如何从一个代码库创建多个Android应用程序 [英] How to create multiple Android apps from one code base
问题描述
iPhone在同一个项目中使用多个目标,工作良好。如果android不能这样做,我需要在一个项目中编译代码库的二进制文件,然后导入到每个新的应用程序项目中?如果是这样的话我正在使用Eclipse,并且是一个中间Java开发人员。
任何帮助非常感谢!
Doug
从Android文档中查看使用库项目。这应该是你正在寻找的: http://开发人员.android.com / tools / projects / projects-eclipse.html#SettingUpLibraryProject
I have an Android code base which uses APIs with settings to get different data for several apps. All apps use the same code base but with one or two design tweaks. So how do I re-use the main code base without having to copy the whole Android project each time?
iPhone uses multiple targets in the same project which works well. If android cant do this do I need to compile binaries of the code base in one project and then import into each new app project? If so how? I'm using Eclipse and am an intermediate Java developer.
Any help much appreciated!
Doug
Check out "Working With Library Projects" from the Android documentation. This should be just what you're looking for: http://developer.android.com/tools/projects/projects-eclipse.html#SettingUpLibraryProject
这篇关于如何从一个代码库创建多个Android应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!