Eclipse を使わない Android アプリの作り方のメモ その1

$ mkdir futsu
$ cd futsu
$ android create project -t 6 -p . -k cla.irvy -a FutsuActivity
$ ant install

とりあえず,Hello World が動くようになる.*1

$ cd ..
$ mkdir tfutsu
$ cd tfutsu
$ android create test-project -p . -m ../futsu
$ android run-tests

とりあえず,空のテストが動くようになる.

android -h create するとヘルプが見られる

id=1 (API level 2) だと動かないのかな?
テンプレートのファイルが使っている ActivityInstrumentationTestcase2 が,API level 3 からだからかも.
その辺を直せば動くのかもしれない.

*1:emulator で avd を起動しておく必要がある