Search code examples
androidgoogle-glassgoogle-gdk

how to upload to your code to Google Glass?


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't know how to go about linking up to my Google Glass from my Windows 7 PC to upload the code.

Does anyone have a good tutorial or step by step instructions would be greatly appreciated!

Thanks


To give more information, I followed the steps on youtube (http://www.youtube.com/watch?v=boj0f_O3i88) to install and prepare a hello world application which works well on the emulator.

Now that I have the app working on the emulator, i would like to send it to glass but I have nothing (on windows explorer or anywhere else) to sync up to. How can I make my glass device show up on windows O/S so I can have something to work from.

Not seeing the device is my first challenge to getting my hello world app on the glass.

Thanks and my apologies if it sounded like I hadn't done my research.


Screenshots of the SDK manager with the correct installation and the DDMS that never shows Glass, even when it's connected to the USB

enter image description here

enter image description here


Solution

  • 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!