Wednesday, June 27, 2012

android debugging on Command Line without Eclipse


On Windows, all command-line, no Eclipse, no hard-coded PATH/CLASSPATH, generic/reusable batch files, using only ANT and any text editor.

These instructions assume you have built & deployed a test project to an emulator ... here is how to do that command-line.


  • execute C:\DATA\tools\Android\android-sdk\AVD Manager.exe
  • click 'New' button
  • name = adv_arm_15 (or make up your own name)
  • target = android 4.0.3 - API Level 15 (or chose any that you see)
  • size = 28 MiB (or designate a higher/lower number)
  • built-in = default
  • click 'Create ADV' button
  • click 'OK' button
  • highlight ADV
  • click 'Start' button
  • click 'Launch' button (and any 'OK' buttons that appear)
  • wait for the Android logo splash screen, then the typical home screen will appear
  • swipe the unlock if needed
  • execute C:\DATA\tools\Android\android-sdk\tools\ddms.bat
  • select the ADV you created
From here you can follow android instructions for using the debugger.

We hope this is useful!

jbones










No comments:

Post a Comment