views:

72

answers:

3

I've start developing android applications. but My PC has so poor resource cpu and ram for using eclipse so I'd like to develop by CLI javac..

How can I use CLI for developing android?

+1  A: 

You could do everything you need from CLI: http://d.android.com/guide/developing/other-ide.html

Brutall
A: 

Here is an article about it.

However, an upgrade to make your computer 'strong' enough to run eclipse is not at all expensive, so I'd recommend to do this instead.

Bozho
@ffffff: As a counterpoint, if you are already comfortable writing Java applications in other IDEs, or no IDE at all, do not feel that you have to use Eclipse. Eclipse is a fine tool, but it is certainly not required to do Android development.
CommonsWare
+1  A: 

Basically after you have downloaded and installed the SDK and all the components, you just type 'android start project' with the right arguments and this is preparing everything for you.

Use your preferred editor to write some code in the src/...(package path).../ folder, you can also add any jar file in the libs and the layout or other resources, everything will be picked up automatically

After that, just call 'ant compile' or 'ant install' from the root folder of your application to compile or to compile and install on a real or virtual device.

Call 'android' without any argument and follow the right menus to create or launch a virtual device. There are also other tools you can launch directly from the command line like ddms, hierarchy viewer and such.

(I am all for vi editing and really hate Eclipse for a lot of different reasons, including eating computer resources for nothing). Doing Android development on the command line is really not that difficult and makes your code so much cleaner (at least as clean as you make it)

Matthieu