Monday, September 28, 2009

Android - detect device on Vista 64 bit

I spent few hours trying to get it to work. Here are the instructions that helped:

I got these from the following link:

First set up environment variable:
  1. In VISTA hit WindowKey + Pause\Break to bring up the system properties
  2. Click Advanced System Settings
  3. Under The Advanced Tab click Environment Variables
  4. Click the New button below the System Variables panel.
  5. In the New System Variable dialog box, type devmgr_show_nonpresent_devices in the Variable Name text box and 1 in the Variable Value box.
  6. Click OK, then OK again to close that Window
Now device manager:
  1. Now go to the device manager and go to View > Show Hidden Devices
  2. Look under Hard Drives and delete the HTC Android Phone USB Device
    ** This may show up as Generic Mass Storage **
    Note: When trying to delete the USB controller for the phone, have the phone plugged in first and see how many usb devices are actually conected. Once you disconnect the phone, you will obviously have 1 less connected device. Plug the phone in 1 more time and see which one is now connected and delete just that one. This will help avoid having to reinstall a bunch of usb devices.
  3. Look Under Portable Devices and delete the Android Phone
  4. Look Under Universal Serial Bus Controllers and Delete ANY USB Mass Storage Devices with a greyed out icon ... one if these is for your phone....
  5. Now with the device manager still open ... unplug and plug your phone in. When the window pops up, choose the android 1.6r1 usb driver directory for the device driver dialog.