Tag Archives: glass

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_125335_521_x  20130910_125400_989_x  20130910_125411_746_x  20130910_125425_065_x  20130910_125435_700_x  20130910_125445_357_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.


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.

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.


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

Install Custom launcher into Google Glass

Hi guys in this post I’ll be guiding you on how to install a custom launcher in the Google Glass.
First Download a launcher, for this demo I’ll be using Launchy.

installation instructions:
Have your Glass in Debug Mode and use ADB
adb install launchy.apk

Now the launcher is installed in your glass.
Now to change the launcher, go to the settings card in your glass and tap once, and you will get a selection window to select the launcher, select the launchy.


Now you can see the apps installed into the glass. You can scroll and select the app you want to launch.


That’s it now install all the apps you want and launch it in the glass.

How to enable ADB in Windows 8 for Google Glass XE7

Google Glass XE7 when you try to connect with the ADB like other Android phone will not work in Windos 8. The ADB will not identify the Google Glass. This problem does not exist in the Mac. Lets see how to make the ADB discover and connect to the Google Glass in Windows 8.

The problem is, there is no proper driver yet for the google glass. Windows 8’s auto search for drivers will also not work.

For this what we can do is we have to add some properties manually to the android_winusb.inf file, and save it.

The normal path of this file is ‘sdk\extras\google\usb_driver’ inside your Android sdk folder.

But here I am giving you the link for the modified android_winusb.inf , just download it and replace it.

And before starting the steps belove you have to bring down Windows security check by going to command prompt as admin and typing the following command

bcdedit -set loadoptions ENABLE_INTERGRITY_CHECKS
bcdedit -set TESTSIGNING OFF

Then go to control panel –> Device Manager where you will see your glass connected but shown with a exclamation mark which tells you driver not found.
Click on it and, click on update button and instead of selecting update by online search, select manual update and give the path of the folder where you replaced the winusb.inf
The path will be Android–>sdk–>extras–>google–>usb_driver

in my case the path is ‘C:\Development\sdk\extras\google\usb_driver’

Also don’t forget to add the Path of the adb in the system variable path.

Now you can access your Google Glass through the adb commands in the normal command prompt.

before starting to use adb commands re enable the windows security check with this command in the command prompt

bcdedit -set loadoptions DISABLE_INTERGRITY_CHECKS
bcdedit -set TESTSIGNING ON

adb install urapp.apk
  – this command will install the app to the google glass

adb uninstall packagenameofurapp
will uninstall the app from the google glass.

adb shell am start -n com.package.name/.ActivityName
  This command will run the app inside the Google Glass.

How to enable Voice to Text in Google Glass XE8 or Older Versions

UPDATE : { This is not wanted if you are using Google Glass which runs XE9 or later.
Its better to uninstall the voice search apk if you have installed it on XE9 or later version. Uninstalation command is
adb uninstall com.google.android.voicesearch

If you have developed an app for normal Android phone which has a voice to text feature, which you have implemented using Androids native library. The same app will not work on a Google Glass. It will throw a ActivityNotFoundException. Because it cannot find the “ACTION_RECOGNIZE_SPEECH” event.

Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);

intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, "en-US");

try {
startActivityForResult(intent, requestCode);
catch (ActivityNotFoundException a) {
Toast t = Toast.makeText(getApplicationContext(),
"Opps! Your device doesn't support Speech to Text",

For that you have to install the voicesearch.apk manually to the Google Glass
using this command(see link below for apk link)

“adb install VoiceSearch.apk”

The VoiceSearch.apk must be a one that has been extracted from a Andoid 4.0 or later version. Now the exception will not be thrown as the Intent called will be fired from the VoiceSearch.apk.

You can download it the apk here  VoiceSearch.apk

How to launch a custom Android app in Google Glass

In this post, I’ll guide you on how to open a custom or your own app using the default voice commands in the Google glass.
I want to mention at this point, that to do this you need to have some knowledge on Android programing. And do this exercise in the emulator we created in our last post, don’t try it on the real glass because it may malfunction the glass, I have not tested it in the glass .Try it in your glass at your own risk.

If we see how the google glass works,  it will open a certain app(apk) using the package name for a predefined voice command.

As for now we don’t have  an sdk to develop our own voice command and an app to open from it. So what I am gona do here is replace a default app that will launch for a voice command and gona launch our own app instead.

In this example, I am gona replace glasscamera with my own app. To do so backup the glass camera app, and delete it from the glass.

First refactor the package name of your app to “com.google.glass.camera”
Now open your app’s manifest file
In the manifest file, change the package name in to “com.google.glass.camera”
Then change the Intent filter inside the activity tag of your app with this Intent filter

                <action android:name=”com.google.glass.action.TAKE_PICTURE” />
                <category android:name=”android.intent.category.DEFAULT” />
Thats it now compile and install/push the apk into the glass/phone and nowSay the Command “Ok Glass”  “Take a Picture” TADAAAA…..!Now your app will open, instead of capturing the image…!