Eclipse is slow, especially on Macs. Plus, I've never really like IDEs very much. I've always prefer to write my Android projects in the terminal with Vim. Here are some of the basics stuff about developing Android using CLI.
Some useful commands…
android create project —target [ver] —package [x.y.z] —activity [name] —path [dir]
Update your Eclipse projects for CLI deveopment:
android update project -p [dir]
Use vim / emacs to write code, and compile / deploy with ant:
View runtime log:
With Eclim you can have most of the Eclipse functionalities inside your vim, including code-completion and real-time validation. Eclim is basically Eclipse running in headless mode that communicates with a vim plugin. So you have your favorite vim for frontend interface, and Eclipse as the backend for different functions.
On the left there's the Project Tree showing all the files in your project,
and on the right there are two source code files opened in split view. Installation is pretty simple,
same as Eclipse, all major platforms are supported. Run
eclimd before executing vim, and use
C-x C-u for automatic code completion in vim.
Syntax is also validated in real-time:
Here are some of the basic Eclim commands:
:ProjectCD [proj] // change directory
:Ant [...] // compiling and deploying
More commands are listed in
Obviously, you need to add your projects to Eclipse in order for this to work, and as Eclipse,
Eclim is also not very fast.