# android PATH
export PATH=$PATH:/Applications/Android/sdk/android-sdk-mac_86/platform-tools:/Applications/Android/sdk/android-sdk-mac_86/tools
# complete the SDK install (adb and all other platform-tools will be missing without this)
android update sdk
# create an Android Virtual Device
android create avd -c 256M -t $(android list | awk '$1=="id:"{l=$2} END{print l}') -n latest
# start the emulator
emulator -avd Captivate2.1u1 -no-boot-anim -scale 0.65 -show-kernel
# or
emulator -avd latest -no-boot-anim
# kill the adb server (for when the adb server was started before your emulator was launched)
adb kill-server
# add sdk.dir to ant settings
sed -i.bak '/^sdk\.dir=/d' local.properties; echo "sdk.dir=$(which adb | sed 's|/[^/]*/[^/]*$||')" >> local.properties
# compile in debug mode
ant debug
# install a package in the emulator replacing the existing install
adb -e install -r bin/HelloWorld-debug.apk
An occasional outlet for my thoughts on life, technology, motorcycles, backpacking, kayaking, skydiving...
Sunday, December 19, 2010
Android Oneliners
The next time I have to setup a non-Eclipse (aka: VIM) Android development environment, I'm going to want to remember these commands.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment