Combine android projects together

android, android-activity, project

Solution

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 .

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 .

Problem

I want to combine 2 android projects together in such a way that when an button is pressed from one activity (of 1st project ) it should start my activity from (2nd project) both the projects are fully functional applications.. it is just that they were developed in parts i tried a lot of searches entire but ended up being frustated can someone provide me with a simple way to do so the activity i am trying to call is MainActivity.java from 2nd project when a button is pressed from activity in first project i want to combine the projects together..so that i can export it as a single apk...

Original source