Reputation: 151
I have an android project and I want to use some classes from another android project. How can I do that? In my project I draw the road between 2 points. From the new project I want to use some classes that help me draw more points on the map and tooltips with information for they.
Upvotes: 1
Views: 1014
Reputation: 19102
Right Click on your project -> New -> Package
Name the package com.youname.yourapp.something
Copy the classes you want to use in this project.
Use import
to use copied classes.
Upvotes: 0
Reputation: 46943
Create a library project containing the common part for the two projects. Make the two projects reference this Android library project.
Upvotes: 2