Android的 - 不同的应用程序之间共享活动/ code
我有一个自定义的标志,一些自定义的JSON服务端点,偶尔的自定义文本,可能是一个自定义颜色方案一个Android应用程序。
I have a single android app with a custom logo, some custom json service endpoints, occasional custom text, and possibly a custom color scheme.
有关我的客户这一特定的应用程序将需要在大约5-10次更名,并将其作为一个完全不同的应用程序。所以我在寻找方法来重用code的最大量。 - 活动和服务将是除我提到的自定义的东西完全相同
For my client this particular app will need to be rebranded and distributed as an entirely different app about 5-10 times over. So I'm looking for way to reuse the most amount of code - the activities and services will be identical except for the custom things I mentioned.
首先,我怎么可以分享在这个意义上项目,这些项目一个项目将容纳所有code(包括活动),而其他人只是修改几个值。我想不出来通过性能甩在了偶尔的价值同时共享服务code和活动code一个聪明的办法。
First off, how can I share projects in the sense that one project will hold all code (including activities), and the others just modify a few values. I can't think of a smart way to share both service code and activity code with the occasional value thrown in via properties.
做Android的布局/字符串资源文件具有从属性,以拉的能力?可以活动罐内捆绑和共享与其他项目?
Do android layout/string resource files have the ability to pull from properties? Can activities be bundled inside a jar and shared with other projects?
您可以使用Android库项目,分享共同的code。通过阅读这文章开始
You can use Android library project to share the common code. Start by reading this article