android create project \ --target 4 \ --name MyProject \ --path /path/to/MyProject \ --activity MyProject \ --package com.example.myproject
R.java is necessary for the app to run, and is referenced in some tutorials. This file may not exist at first, but will be created the first time you build the project. It may be possible to create the file with the right ant target but I couldn't get it to work with recent sdk's that way.
adb install -r /path/to/MyProject/bin/MyProject-debug.apk
#!/bin/sh ant debug \ && adb install -r /path/to/MyProject/bin/MyProject-debug.apk
#!/bin/sh adb logcat -v time MyProject:V *:S
./build.sh && ./debug.sh - or - (start a full or custom adb logcat session, keep it running by pressing ctrl-z) ./build.sh && fg (the fg will bring the logcat session back up) # if you want to also see ActivityManager messages, you can add this filter: # && adb logcat -v time ActivityManager:I MyProject:V *:S
adb -s emulator-5554 install /path/to/MyProject/bin/MyProject-debug.apk