Google Glass experiment
I’ve recently completed a small experimental project using Google Glass. The project intends to let the user scan a QR code which contains an encoded URL and send it to a phone.
Initially, the communication was supposed to be done using Bluetooth, which would make a lot of sense, considering that the Glass is usually always paired with a phone. I ran into trouble after I finished the Android app and everything was running fine, when I found out that iOS doesn’t allow normal Bluetooth communication, only Bluetooth Low Energy.
After trying to find a way to use BLE to accomplish the same thing, we abandoned the Bluetooth approach entirely. In order for BLE to work, Glass should have acted as a BLE peripheral, waiting for the phone to read the URL. However, Glass runs Android which, currently (4.4 Kitkat) doesn’t support peripheral mode, only central.
So we decided to implement an old fashioned push-notifications way of delivering the scanned URL to the target device. And that was that, nothing fancy, nothing to report.
I want to say that I love developing for the Glass. It runs pure, unadulterated Android, with the GDK on top. You can basically compile any Android app and run it on Glass. Obviously, you couldn’t do much with it.
On the other hand, I don’t see much use for the Glass (yet). Most of the things it does can be accomplished with a minimum of effort on a phone, and at a much lower price tag.
I will update this post with the code when it’s ready, and maybe find the time to go through the most interesting parts in another post.
Originally published at corneliudascalu.com.