Skip to content

Example Phonegap project that can be imported to Eclipse and exported as .apk file for Google Glass

License

Notifications You must be signed in to change notification settings

apritykin/googleglass-phonegap-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

googleglass-phonegap-example

Example Phonegap project that can be imported to Eclipse and exported as .apk file for Google Glass. The JavaScript includes touchpad events and accelerometer events via the Phonegap API.

##Prerequisites

  1. Make sure Glass Debugging is turned on
  2. Connect your Glass via USB to your computer
  3. On your mobile device, turn on Glass screencast
  4. On your computer, [Install Phonegap] (https://dl.dropboxusercontent.com/u/348446/trainings/android.html)

##Directions

  1. Clone this <googleglass-phonegap-example> repository
  2. In Eclipse, import the <googleglass-phonegap-example>/example/ directory
  3. Download and install Android Debug Bridge (adb)
  4. In Terminal, cd to <adt-bundle...>/sdk/platform-tools
    • run ./android update adb
    • run ./adb kill-server
    • run ./adb start-server
    • run ./adb devices
    • make sure Glass Serial Number is detected
  5. In Eclipse, right-click on the example project and hit 'run example'. You should see an option to upload to your Glass.
  6. Make changes to JavaScript, HTML, and CSS in the <googleglass-phonegap-example>/example/assets/www directory

##References

Screenshot of Glass accelerometer data: Google Glass accelerometer data via Phonegap

About

Example Phonegap project that can be imported to Eclipse and exported as .apk file for Google Glass

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published