Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AVD manager won't detect my HTC Hero phone as Virtual Device

I need to use my phone as emulator/target/virtual device when I run my application. I have installed HTC Sync and the USB driver is in order. I have enabled the USB Debugging in Settings.

What more do I need to do to make Eclipse AVD Manager to detect my phone? I made it work on anohher coumputer, following the exact same steps I have done now. "Suddenly" it just detected the phone. This makes no sense! argh

Help please?

like image 970
Sara Avatar asked Feb 10 '10 12:02

Sara


2 Answers

Finally - it works! In Run Configurations -> Target -> Select "Manual" instead of "Automatic", then you have to choose device or emualtor when you run the application. And then I could choose my phone instead of the emulators.

like image 130
Sara Avatar answered Oct 17 '22 16:10

Sara


HTC Hero (Android 2.1)
eclipse Helios (3.6)
Windows XP SP3

I got this working by doing the following

  1. Make sure that your project is set to debuggable in the manifest android:debuggable="true"
  2. On the Hero make sure that it is set for remote debugging
    Menu > Settings > Applications > Development > USB Debugging
    (next three steps I got from here)
  3. Install HTC Sync (3.0)
  4. Use USBDeview to remove device
  5. Plug in device
  6. Check device is added by running "C:\Program Files\android-sdk-windows\platform-tools\adb.exe devices" which said the server was out of date and automatically killed and restarted it and showed my device as connected.
  7. Also ran this to be safe "C:\Program Files\HTC\HTC Sync 3.0\adb.exe devices"
  8. Then in eclipse click the drop down menu on the debug tool bar item > Debug Configurations... delete all the existing configurations and close
  9. The next time you debug it finds the HTC Hero and runs debug on it
like image 6
Martin Belcher - AtWrk Avatar answered Oct 17 '22 15:10

Martin Belcher - AtWrk