-1

I have multiple completed android studio project and I want to combine them into a single android project. The final app should have various tab, and when I click on the different tab button, the tab should bring me to the different projects that I have build individually.

I have searched and I saw methods such as using library and modules? I am quite lost as I am not sure which is the direction I should follow. Any suggestions?

Emilyy Lim
  • 89
  • 1
  • 1
  • 14
  • 1
    Import modules in your new project. https://developer.android.com/studio/projects/add-app-module.html – Suhayl SH Jan 16 '17 at 08:23
  • In addition to the above you'll need to create an activity with a tab layout and for each tab start the entry point of each project – ashkhn Jan 16 '17 at 08:28

1 Answers1

0

Android allows you to build projects as .aar as well. which is an Android library. [ This ] shall help you with creating libraries in Android.

Then the next step is to include all these libraries inside your main App. For that, [ this ] shall help you.

Community
  • 1
  • 1
OBX
  • 6,044
  • 7
  • 33
  • 77
  • I have a question, after i compile and imported the required projects as libraries, can i edit the library if there are any last min changes? – Emilyy Lim Jan 16 '17 at 08:42
  • **Nope** . You can't . Make all the necessary changes inside the libraries itself. One Alternative is You can create normal classes inside the library, then create classes that extend the base classes from the library to add custom features. – OBX Jan 16 '17 at 08:45
  • because my application requires a constant change of IP address( as i am using local host), so i would need to edit my mainactivity before i compile every time. Would it still be possible? – Emilyy Lim Jan 20 '17 at 07:51
  • Which IP address are you talking about? – OBX Jan 20 '17 at 07:58
  • IPV4 of my computer. And it changes everytime – Emilyy Lim Jan 21 '17 at 03:52