The desktop application emulator works fine. Settings > Applications > Development > USB debugging is checked. The "USB debugging connected" alert is displayed on the Nexus One when the USB cable is attached but I can't seem to get the debugger to run the code on it. Is there something else I need to do to get the debugger to work on the device?
A:
If you're on Windows, make sure you have the usb driver installed.
Then go into the directory of your Android SDK / tools via command line (cmd
), type "adb devices
" in the command line to see if your device appears.
Mathias Lin
2010-10-28 17:08:12
"adb devices" returns the error message "adb is not recoginized" but "Android Composite ADB Interface" is in Device manager.
2010-10-28 17:21:33
hm I meant typing 'adb devices' in the windows command line when you're in the tools directory of the SDK. I didn't know that you meant within Eclipse, but nevermind, I see you got it working already :)
Mathias Lin
2010-10-28 17:52:07
+3
A:
sometimes you need to manually select the run target.
in Eclipse:
- Run->Run Configurations
- Select your project
- in the Android tab select Launch and pick your Activity
- in the Target tab select Manual
- Apply
- Run
- Choose your device
aprock
2010-10-28 17:22:40