是有可能在编译的时候合并Android应用程序? [英] Is is possible at build time to merge Android applications?

查看:120
本文介绍了是有可能在编译的时候合并Android应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此问题是关系到<一个href=\"http://stackoverflow.com/questions/3608119/creating-android-modular-applications-on-eclipse\">this 之一。我在Eclipse两款Android项目。一个项目的一项活动呼吁其他项目的活动。这将导致两个独立的应用程序部署的Andr​​oid手机上。

This question is related to this one. I have two Android projects inside Eclipse. One activity of one project calls an activity of the other project. This results in two independent applications being deployed on Android phone.

有没有办法在编译的时候合并(内部或外部的Eclipse)中只有一个两个应用程序所以只产生一个APK?

Is there any way to merge at build time (inside or outside Eclipse) both applications in only one so only an APK is generated?

推荐答案

您可以申报项目作为库之一,包括它在其他活动。 Eclipse将采取合并code,资源和apk的照顾。请参见了解更多详情。

You can declare one of the projects as a library and include it's activities in the other. Eclipse will take care of merging the code, resources, and apk's. See this for more details.

这篇关于是有可能在编译的时候合并Android应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆