I'm new to Android development, and am attempting to run a test application on my actual device. I followed the instructions at http://developer.android.com/guide/developing/device.html (and related links), but the Android Debug Bridge (adb) doesn't recognize my connected device.
Some quick background info, I'm running WinXP, developing with Eclipse, with a Motorola Droid running Android 2.1 as my physical device.
An overview of the steps I've taken:
I'll stop here (though I continued to setup my application to be debug-able in Eclipse), because I at this point I noticed a problem.
Running "sdk\tools\adb devices" at this point (at least, by my understanding), should list my device as connected. However, running this yields only:
List of devices attached
My device recognizes that it's connected to a computer in debug mode, and my computer recognizes the device. However, I can't seem to get the sdk to recognize it. I'll leave out the steps I used to setup Eclipse for debugging on a device, as it doesn't seem relevant to the problem. I'll include them if requested.
If anyone has any ideas, I'd greatly appreciate some assistance. Thanks in advance for your time.
If your device is not correctly detected in RAD Studio or in the system Device Manager, check the following: Ensure that your Android device is unlocked and not sleeping while connected via USB. Set the appropriate option in Settings or Developer Options. Make sure your Android device is enabled for USB debugging.
I am using HTC OneS. Eclipse on Ubuntu 12.04. I had the USB debugging enabled. But after plugged in, it doesn't let me deploy. It was recognized as a device: ????... no permissions
What solved my issue is the USB device permission. I found my answer here.
What I did:
$ sudo vi /etc/udev/rules.d/51-android.rules
I added this 2 lines in the rule file:
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="0cec", MODE="0666"
SUBSYSTEMS=="usb", SYSFS{product}=="Android Phone", MODE="0666"
My device USB vendor:product is "0bb4:0cec". To find it out, use command >lsusb. Then I unplug/plug my phone. It was recognized.
When I had this issue, I figured out that my phone's USB connection was set to media sync mode. When I switched it to mass storage mode, the hello world program loaded right up. I did this by dragging down the USB icon in the top tool bar of the phone's home page.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With