Android imports external classes in eclipse

I have seen many ways to import my own classes into a project, but they all just say β€œdo it, do it” and there’s no explanation of how this thing actually works. I'm used to developing the iPhone, and there I just associate the classes from the external folder with the project, and I can modify them in the IDE or externally - they will still be connected (that is, they are not copied to the project during development, these are just links to actual files). I was wondering if this is possible on an eclipse? Ideally, when I add another class to the folder, it should also appear in eclipse, if possible.

  • I bind an outer class (without any copies of it)
  • I am changing the class, it is being modified for all projects using it
  • on build, eclipse automatically includes a file

thank

+3
source share
2 answers

Android library projects is the answer you are looking for. You will find good documentation here: Setting up a library project

+2
source

It looks like you should create an Android Library Project . Once you do this, you can add links to the library project to as many applications as you need.

+1
source

All Articles