How To Import .java From Another Project And Package In Android
We're working on a project (Project A) in college that has to extend from a class that is another project (Project B), made years ago. This is working under Eclipse, and developing
Solution 1:
What you can do if you have the complete project B that you need to include inside your project (project A).
- Make Project B a library in the following manner :
- Right click the project B in Eclipse, and click on Properties.
- Select Android then the isLibrary check box.
- Once Project B is a library, you have to add the library B (formerly project B) in your project A in the following manner :
- Right click the project A in Eclipse, and click on Properties.
- Select Android then click on Add....
- You should see a list with all the library projects inside eclipse on your machine. You should also see Project B. Select it and click OK.
- You should see Project B in the list of libraries.
Now you should be able to import packages from Project B to project A and use its classes with no problem.
Post a Comment for "How To Import .java From Another Project And Package In Android"