开发者

android import external classes into eclipse

I've seen many ways to import my own classes to a project, but they all just say "do this, do that" and there's no explanation of how the thing actually works. I'm used to iPhone development and there i just link the classes from an external folder to the project and i can modify them in the IDE or exter开发者_运维百科nally - they will still be linked (that is they are not copied to the project during development, they're merely links to actual files). I was wondering if such a thing is possible on eclipse? Ideally when i add another class to the folder, it should also appear in eclipse if possible.

  • i link the external class (without making any copies of it)
  • i modify the class, it gets modified for all projects using it
  • on build, eclipse automatically includes the file as well

Thanks


Android library projects is the answer you're looking for. You'll find a good documentation for it here: Setting up a Library Project


Sounds like you should set up an Android Library Project. Once you've done this, you can add references to the library project to as many applications as you need.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜