Tag Archives: googleglass

Google Glass – Adding your Own Voice Commands to Your Apps

Hey guys with the introduction of the Glass development Sneak Peek, I found the way to add your own voice command to trigger your app. This is for native Android Apps.

What you have to do is,

Step 1
inside the manifest file add these tags under the service which you wanted to trigger on your voice command.

<intent-filter>
<action android:name=”com.google.android.glass.action.VOICE_TRIGGER” />
</intent-filter>
<meta-data
android:name=”com.google.android.glass.VoiceTrigger”
android:resource=”@xml/voice_trigger_start” />

Step 2And you have to create a folder called xml inside res and add a xml file named as “voice_trigger_start.xml”

Step 3
Inside that add these lines

<?xml version=”1.0″ encoding=”utf-8″?>

<trigger keyword=”@string/its_me_amalan” />

Step 4
Open the values folder inside res folder and edit strings.xml, so it will look like this

<resources>
<string name=”app_name”>Amalan</string>
<string name=”its_me_amalan”>Hello Amalan</string>
<string name=”stop”>Stop</string>
</resources>

Now install the app into the google glass and say
OK GLASS Hello Amalan
And the app opens

I have used my name 😉 but you can try lots of other words.

Please install the latest  Glass Development KIT and tryout the samples, you can get more out of it 🙂

Get the Source here
gitHub-download-button

 

Google Glass in Colombo Agile Meetup…!

1st of October 2013 at Voice Lounge, Burgher Recreation Club, Colombo Agile Meetup hosted one of their most wanted meetups featuring the famous Google Glass. So the topic is “A real life case study of a Google glass project.”

20130912_143933

Shamira Dias (Delivery Manager, Exilesoft), started the talk, with the Subject “Unfamiliar territory and uncertain outcomes: The Google Glass Project”. So he elaborated the types of projects that Exilesoft do, and how the developers here at office and onsite, deal with it. Sometimes they are not familiar with the business domain, but holding back is not the prudent thing to do. Therefore, to add to it, when a project appears with an unfamiliar object he explained using the Google Glass project which they are currently working on in Exilesoft, how agile practice helped them, and how they co op-ed and won, in the end.

1381930_10151585171006710_1273619941_n

Next the talk was passed onto Sanath Nandasiri (Software Engineer, Exilesoft) one of the two developers, directly connected with the ongoing Google Glass project (the other one is Me ). He explained what Google Glass is, what it has, what it can do and available features on it.  So the session went with some live Google Glass Demo, which really entertained the audience. One of the important features I thought was, it runs Android 4.0.4 and it got a wonderful natural voice recognition which has a high accuracy rate.

556621_10151585171726710_2012012341_n

Further on Sanath moved into Google Glass development. There are 2 ways that we can approach the GLASS development. They are the native way (Android) and the Glassware development (Server Side using Mirror API). Then he explained how the glassware works, what the role of the Mirror API is and the technologies used to develop a glassware. Native development is similar to the traditional android development but with some restriction of functionality and libraries. One of the reason for the restriction is caused by the lack of sensors in Google GLASS unlike normal Android phone. Those functions can be achieved by pairing to your Android phone through Bluetooth. Also explained how the glassware authentication take place under the hood.

Then another round of demo session took place explaining the Google GLASS Time line. And a cool thing happened for developers, there has been a code review on Glassware and the code has been open sourced. The source can be downloaded here. Also as a bonus, Sanath explained and showed how you can bring in Google Glass in your Android phone that is running Android 4.0.4 or later, this will be a great emulator to test your Glassware apps (It cannot be used to test native apps though).

Finally Dulan Bandara (Software Engineer, Exilesoft), explained about unit testing and its importance in the Glass Project. Then he compared unit test on Android and unit testing on Google Glass. There was a hands on coding demo for the unit testing. It’s important to mention that a bunch of visitors got a chance to try out the Google Glass. They were awed at the experience they got.

63626_10151585172331710_1821980851_n

The talk came to an end with the Introduction of a new meet up group “Colombo Mobile Meetup”, and an Announcement of the upcoming DevDay 2013.

For the complete collection of research and development article on Google Glass explore my Blog.

Meetup Organized by Exilesoft (Pvt) Ltd.

Google Glass and It’s Battery Consumption

Ok, developing apps and glassware for Google Glass seems to be not a big deal……!
But there are some hidden issues we have to take care of…!

GoogleGlass_1

1st one is Battery and the 2nd one is Performance…!

Even though the Google said the Battery will last for 1 Day, I could not experience the glass battery as long as that, unless it was left to sleep. When the Battery was full, I started taking a video, I got warning in 20 minutes saying battery is low, that’s it, I have to stop taking video and shutdown the glass. Here is the Video Taken.

So you must have understood, how poor the battery life is in Google Glass. So running a native Android is really a battery draining factor, specially pairing to phone through Bluetooth. And if you are using any sensors in the glass then that will cause heavy battery usage.

Alternatively we can do something like, keeping down the brightness of the display, and put the glass to sleep at most of the time(When app is idle). Avoid doing heavy process in the glass by sending the data to a server and process it and get the result.

I have read some people’s review say, using Glassware can solve the battery problem. Yes, as it is a plain html card which does not java script it won’t drain much battery.

But anyway the cards are shown in web browser objects. Smart phone users know the battery drain very much when they use web browser. So If the glassware results are going to be  shown in a series of web browser object which is called time line won’t it be draining battery very much? This point is just a conceptual thinking of mine.

Even though we have discussed only some facts about battery, there are more hidden battery factors too. But some leaked patent doc shows possible 2 side battery increasing the battery capacity by double.

One of my friends suggested a tip and it is using external battery w/USB
Here is the picture of it. You can try this too if you want more battery power. Further he mentioned that it lasts for the whole day. If you like follow him on twitter for more tips
BVfIq94IEAAZP3B.jpg large

That’s all for today, catch you guys soon with more on Google Glass…!

Google Glass Consumer Vesion Sneak Peek

Screen Shot 2013-09-15 at 7.22.51 PM

So here we can see that the google glass can be rotated up/down and left/right, where in Explorer Edition only left/right is possible. This is one of the most wanted features by the glass users.

Screen Shot 2013-09-15 at 7.21.52 PM

So in the above picture we can see that the battery will be placed on both sides for more battery, where in Explorer edition we got only battery on right side. This really increases the usage time of glass.

Screen Shot 2013-09-15 at 7.21.42 PM

In this picture you can see the glass can be moved forward and backward to adjust the view.

So with some of these features we can predict that, a adjustable user friendly device,
a device with more battery for extended usage and heavy usage.
With all these features we can we can hopefully fix a custom glass as wanted.

These are just the things known for now, but there are still, 7 or eight pages to be relieved.
So keep you eyes open , ill be updating more soon.

Image Resource  from +Isabelle Olsson(Googler)‘s Gplus post, about recent patent on Google Glass (published on September 12th).

Google Glass Vignettes

Vignettes is a new feature added to Google Glass with XE9 update, which out puts the photo taken with the actual view in the Google glass screen. So I have taken some Vignettes which shows the Glass initial view and some pages in the Settings.
The last one is a google hangout call notification.

See for instruction on how to take a Vignette through Glass

20130910_130122_217_x
20130910_125335_521_x  20130910_125400_989_x  20130910_125411_746_x  20130910_125425_065_x  20130910_125435_700_x  20130910_125445_357_x

20130910_125456_088_x

20130910_125505_097_x

To create a Vignette, simply press the camera button and single tap on the photo preview shown soon after it and it will show you the option to create Vignette. That’s it you Vignette will be ready to share.

First Ever Batman Game for Google Glass

UPDATE: After receiving XE9 Update to the Google Glass we can get Vignettes. So here are the Vignetts taken while playing Batman Sky Adventure.
20130912_132225_637_x

20130912_132243_008_x

Hi guys, I am proud to introduce the first ever Batman Game for the Google Glass.
It works using the Accelerometer in the Google Glass.

unnamed2
In the game you will be riding the Batwing(Batman’s Jet), it automatically shoots batarangs out of it, so you have to do is just tilt your head left and right to fight the Joker’s Poison Gas balloons and bombs.

unnamed

This game is originally built for Android phones, with some tuning managed to make it work on the Google Glass.

Demo can be watched –  

Download the Game APK here

installation instructions:
Have your Glass in Debug Mode and use ADB
adb install Bat Man Sky Adventure_Initial Release.apk

Starting the App instruction
This app is built using adobe air, so there is no accessible activity, so to launch this app a custom launcher has to be installed(Launchy, holo, etc). Please see the post on How to install a custom launcher into the google glass 

UnInstallation instructions:
adb uninstall air.com.amalan.skyadventure

This is the initial version for Google Glass.
Google Glass users enjoy the game and send me feed backs.

If you want to try it in the Android phone please download it from Google Play

Follow me on Twitter @amalan_d