how to upload to your code to Google Glass?

后端 未结 3 1074
遥遥无期
遥遥无期 2021-01-28 17:56

I\'m in the process of learning android and the GDK, I have \"Android developer tools\" installed along with \"SDK Manager\".

I made my first hello world app, but I don\

相关标签:
3条回答
  • 2021-01-28 18:03

    So the problem was that I couldn't see the Google Glass on my computer.

    I followed the instructtion on youtube by a fellow explorer: http://www.youtube.com/watch?v=rfpKyj7fJCM

    He's got the written version of what he does here: http://leetinsider.com/2013/12/11/google-glass-drivers-windows/

    Basically my Fix consisted of adding the following code into my sdk\extras\google\usb_driver\android_winusb.inf file:

    ;Google Glass
    %SingleAdbInterface% = USB_Install, USB\VID_18D1&PID_4E11&REV_0216
    %CompositeAdbInterface% = USB_Install, USB\VID_18D1&PID_4E11&MI_01
    %SingleAdbInterface% = USB_Install, USB\VID_18D1&PID_9001&REV_0216
    %CompositeAdbInterface% = USB_Install, USB\VID_18D1&PID_9001&MI_01
    

    Then I simply updated driver on my unknown device from my "device Manager" and pointed it to the android_winusb.inf file and it worked!

    I can now see and upload code to glass!

    0 讨论(0)
  • 2021-01-28 18:05

    In my case, my andriod_winusb.inf already had some values under the ;Google Glass line. That made the Google Glass device appear in the device manager, but as an "Android ADB Interface" instead of an "Android Composite ADB Interface". Any changes to the andriod_winusb.inf didn't make any difference.

    What worked for me was to click on the Andoid ADB Interface in the Device Manager. Click uninstall, and (very important) check the check box that says : "Delete the driver software for this device".

    Then I modified the andriod_winusb.inf file, by adding

    ;Google Glass
       %SingleAdbInterface% = USB_Install, USB\VID_18D1&PID_4E11&REV_0216
       %CompositeAdbInterface% = USB_Install, USB\VID_18D1&PID_4E11&MI_01
       %SingleAdbInterface% = USB_Install, USB\VID_18D1&PID_9001&REV_0216
       %CompositeAdbInterface% = USB_Install, USB\VID_18D1&PID_9001&MI_01
    

    Then back in the Device manager I clicked on Glass 1 in the Device manager, and updated the driver.

    I'm guessing that once Windows knows about a driver, it caches it somewhere, so uninstalling it and reinstalling ,without "deleting the driver software" just brings the cached driver back, and completely disregards the changes in the original driver folder.

    0 讨论(0)
  • 2021-01-28 18:18

    It sounds like you haven't put Glass into Debug Mode, so it isn't detected by the adb program or graphical equivalent.

    You may want to follow the steps at https://developers.google.com/glass/develop/gdk/quick-start#for_android_beginners which is a step-by-step guide for deploying on Glass. It should go hand-in-hand with the video you outlined above, but has Glass-specific information as well.

    0 讨论(0)
提交回复
热议问题