Android的 - whitelabel应用程序应用程序、Android、whitelabel

2023-09-05 07:47:38 作者:′Confused.

我有一个关于发布到市场的问题。

I have a question about publishing to the marketplace.

公司,X,为公司A和类似的服务; B,两者急症室;乙想在市场上的应用程序。 X公司愿意写只是一个应用程序,并使用相应的标志的,配置设置,语言字符串在编译时区分它们。但是,当涉及到出版,这些应用程序具有相同的应用程序包名(使用共享code碱基)。该应用程序将得到维持和

Company, X, provides similar services for companies A & B, and both A & B want an app in the market place. Company X wants to write just one app and differentiate between them using the appropriate logo's, configuration settings, language strings at compile time. However, when it comes to publishing, the apps have the same app package name (using shared code base). The app will be maintained and

所以,因为我想保持一个code的基础上,什么是最好的做法在这里?

So, given that I want to keep a single code base, what is the best practice here?

推荐答案

据我知道你不能对市场的两个应用程序具有相同的包名。为了避免共享code,布局,可绘制等复制粘贴,我会建议把这些资源投入到一个库项目,然后从应用程序A和B你提到在这些应用程序中引用这个项目只是覆盖值你要改变。

As far as I know you can't have two apps on Market with the same package name. To avoid copy-paste of shared code, layouts, drawables etc I would recommend to put the these resources into a library project and then reference this project from app A and B that you mention and in these apps just override the values you want to change.

更多关于库项目的正式文件; http://developer.android.com/intl/zh-TW/guide/developing/eclipse-adt.html#libraryProject

More about library projects at the official documentation; http://developer.android.com/intl/zh-TW/guide/developing/eclipse-adt.html#libraryProject