如何将两个android工作室项目合并为一个[复制]

时间:2021-06-21 12:19:34

This question already has an answer here:

这个问题在这里已有答案:

I have one sinch project for messaging and my own project for chat, I want to integrate both project for my application. Please help me out. I'm not getting satisfied answers. I am asking about SINCH MESSAGING CHAT. Thanks in advance.

我有一个用于消息传递的sinch项目和我自己的聊天项目,我想为我的应用程序集成两个项目。请帮帮我。我没有得到满意的答案。我在询问SINCH MESSAGING CHAT。提前致谢。

1 个解决方案

#1


0  

From Combine android projects together

从组合Android项目

The answer depends on what you intend to do with the projects.

答案取决于您打算如何处理项目。

If you wish to merge the project into a single app , at least one of them should be set as an android library , and another project should use it . This way , the merged projects would be able to recognize each other .

如果您希望将项目合并到一个应用程序中,则至少应将其中一个设置为android库,另一个项目应使用它。这样,合并的项目就能够相互识别。

If you wish to have 2 apps and not a single app , each activity that you wish to access from another activity should have a special definition in the manifest (using intent filter) of how to open it , as it's not the default behavior .

如果您希望拥有2个应用程序而不是单个应用程序,那么您希望从其他活动访问的每个活动都应该在清单(使用意图过滤器)中具有如何打开它的特殊定义,因为它不是默认行为。

#1


0  

From Combine android projects together

从组合Android项目

The answer depends on what you intend to do with the projects.

答案取决于您打算如何处理项目。

If you wish to merge the project into a single app , at least one of them should be set as an android library , and another project should use it . This way , the merged projects would be able to recognize each other .

如果您希望将项目合并到一个应用程序中,则至少应将其中一个设置为android库,另一个项目应使用它。这样,合并的项目就能够相互识别。

If you wish to have 2 apps and not a single app , each activity that you wish to access from another activity should have a special definition in the manifest (using intent filter) of how to open it , as it's not the default behavior .

如果您希望拥有2个应用程序而不是单个应用程序,那么您希望从其他活动访问的每个活动都应该在清单(使用意图过滤器)中具有如何打开它的特殊定义,因为它不是默认行为。