Skip to content

Instantly share code, notes, and snippets.

@brianleroux
Created November 18, 2010 21:18
Show Gist options
  • Save brianleroux/705638 to your computer and use it in GitHub Desktop.
Save brianleroux/705638 to your computer and use it in GitHub Desktop.
Useful command line invocations for Android with PhoneGap.
# start avd manager (create emulators, update sdks)
$ android 

# updates an android project local.properties and ant tasks
android update project -p .

# stop the server that identifies devices to ant build 
$ adb kill-server

# start up the adb server and (hopefully) find your devices!
$ adb start-server

# build a debug version of your app and install it to first device
$ ant debug install

# attach logger (console.log statements work in phonegap!)
$ adb logcat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment