Phanikanth
Phanikanth

Reputation: 69

How to reference the one project to another

I have one project called as A, I want to use that project with my B project, I don't want use entire code in B project I just want to use one xml file and related images in project B.

We can change values in that xml like any application names, images etc... is it possible?

Upvotes: 0

Views: 224

Answers (1)

Rajnish Mishra
Rajnish Mishra

Reputation: 836

You can do this

Open Your Base Project B Right click on it go to Properties then Android Go to bottom Library - mark as Library.

Right click your project A (new project) in eclipse

Go to properties

Java Build path

From tabs Select Project

Click Add

Select your project B (Lib Project) you want to

Click Ok

Now you can use referenced project from your main project A.

Thanks.

Setting for Project A (In Image for LibTest)

Upvotes: 2

Related Questions