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
- Make sure Glass Debugging is turned on
- Connect your Glass via USB to your computer
- On your mobile device, turn on Glass screencast
- On your computer, [Install Phonegap] (https://dl.dropboxusercontent.com/u/348446/trainings/android.html)
##Directions
- Clone this
<googleglass-phonegap-example>
repository - In Eclipse, import the
<googleglass-phonegap-example>/example/
directory - Download and install Android Debug Bridge (adb)
- 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
- run
- In Eclipse, right-click on the example project and hit 'run example'. You should see an option to upload to your Glass.
- Make changes to JavaScript, HTML, and CSS in the
<googleglass-phonegap-example>/example/assets/www
directory
##References
- Phonegap Docs
- Android Debug Bridge aka 'ADB'
- Glass GDK