java - How to add Project to use everywhere without changing anything in another project -


i apologize, if question has been answered earlier, haven't found appropriate answer asking one.

i have developed android application. want develop same application different splash screen , logo. want use earlier project development if changes happen in logic can track them easily.

what trying add project , use project library every where.

(project 1 -> parent project want use library)

(project 2 -> child project want use parent project) went project 2 (where want add/use parent project library)
project properties -> java build path -> project -> add added project1 (parent project)

now in mainactivity of project2 (child project) using project1

mainactivity:

package child.project.appstar;  public class mainactivity extends parent.project.appstar.mainactivity {   } 

now there else need add or can run project in devices?

any kind of appreciated.

you can make main project library project. if using eclipse open main project project.properties file , add :

 android.library=true  manifestmerger.enabled=true 

and don't add main/launcher intent in activity of manifest.xml file.

child/sub project add these lines on project.properties file. "../mainproject" path of ur main project , "mainproject" project name. {make sure these correct.}

 android.library.reference.1=../mainproject  manifestmerger.enabled=true  android.library=false 

then @ sub project need import main project files .. , u can access them.

 import com.mainproject.myactivity;   public class mainactivity extends myactivity{ } 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -