One of the first things I did after getting my shiny new Nexus One was to plug it into my computer for development. After all, development was the entire reason I bought this very expensive new toy (well, it might not be the only reason, but it is the one I use to justify actually plunking down and buying it when I already had a fine and functional iPhone). I thought it would be as simple as plugging in the device and going, unfortunately it wasn’t quite that easy. The instructions on developer.android.com aren’t very good — especially since they leave out the very critical step of turning on USB debug on the phone. Since I had to stab my way through this, I thought I’d share the process with you. One important note: Have the Android SDK downloaded & updated already (that includes the USB drivers).
- Plug phone in to your computer
- On the phone — Open Settings
- Applications
- Development
- Check “USB Debugging”
- Click OK
- On your computer — Right click on My Computer
- Manage
- Go to Device Manager
- Find “Other Devices”
- Right Click on “Nexus One”
- Click “Update Driver Software”
- Click “Browse my computer for driver software”
- Select the location in which you installed the SDK, and previously downloaded the sdk
- Click Next
- When windows security prompts you, click “Install”
- After a few minutes, you’ll be able to close the window
- Launch a Command prompt (Start > Run > cmd)
- Change to your sdk install location \tools
- enter “adb devices”
At this point it should read something like “HT02LP901416 device”. As long as it doesn’t start with “emulator-“, you’re good to go. If not, it still isn’t recognizing your phone.
If you haven’t already, you need to add android:debuggable=”true” under