Skip to content Skip to sidebar Skip to footer

How To Import An Existing Android Project Into Another Android Project

i want to import an existing Android Project(a small App that should be added to another Android Project soon) into another Android Project in order to test. I tried several things

Solution 1:

Right click on your project Build Path>Configure Build Path> "Select prject tab" then add the project :D

Hope it helps Have fun

Solution 2:

there are a couple of different solutions imo.

If applicable - you could mark the first small project as a library and just add it to the newer project (properties -> android -> checkbox/add lib)

OR

You access the app if its already installed on the device

OR

You copy the source code/package to the new project

OR

You compile the old project to a dex file and load the classes/methods via the DexClassLoader

OR

export as JAR file, as you already tried - but you cant export any resources (although there are workarounds if there arent many resources)

Thats all I can think of right now, if you have more specific question to one of the solutions, just ask =)

Post a Comment for "How To Import An Existing Android Project Into Another Android Project"