Search code examples
androidimageusbgoogle-glassgoogle-gdk

View images transferred to Google Glass via USB


Does anyone know if it's possible to transfer JPEG images to Glass via USB, and then view the images on Glass?

I tried copying the images on my PC and pasting to both the "DCIM" and "Pictures" folder under Glass' "USB storage" folder, but that didn't seem to work. I could see the images inside those two folders on my PC after the transfer was done, however, I just couldn't view them in my Glass.


Solution

  • This app allows you to browse all the media files in your DCIM/Camera directory http://html5webapp.blogspot.de/2014_04_01_archive.html

    So download the zipped file, extract it, place the resulting .apk file in <sdk>/platform-tools/

    Then on the command line (or terminal), go to the directory where the [application.apk] file is, and type the following commands while the Google glass is connected, and debug mode is on:

    adb install [application.apk]
    

    If you want to uninstall it later, type:

    adb shell pm list packages
    

    This will list the packages installed on your glass, look for the [package-name] that describes the app you installed and type:

    adb uninstall [package-name]
    

    Now wear the glasses, tap while in the card that shows the time, you'll get a list of applications that includes: "Media Gallery", it should include your new files.