I followed some steps I found here (can\'t find the URL right now, sorry) to convert my Android project in Eclipse to a layout where 99.9% of my code is in a library project
Properties
.Java Build Path
.Libraries
tab.Now, it depends how you compile your library.
So either do an Add JARs...
or an Add Class Folder
.
Choose the external
variant to use an external source.
That's it.
Properties
.Java Build Path
.Projects
tab.Click Add...
on the right side and you are done.
Two steps are necessary:
Right click your project and select Properties
.
Select Android
on the left and tick the checkbox IsLibrary
. Done.
Right click your project and select Properties
.
Select Android
on the left and Add...
your marked project. It will be added to the list and is ready to use. Now you are able to access all classes and ressources (e.g. drawables, strings) from the referenced, marked project. Awesome, eh? :)