Tag Archives: glassware

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.

Advertisements

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…!

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",
Toast.LENGTH_SHORT);
t.show();
}

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

First ever Google Glass in Sri Lanka

We got our Testing Google Glasses here at Exilesoft from USA today(2013/07/30).
Till today we are working on an emulator that we made our self(Actually changed an Android phone into a Google Glass)

These are the boxes of the Glasses
20130730_164953

Google Glass in my Table
Google Glass in my Table

Me with the Google Glass
Me with the Glass

Keep in touch , More on Hacking and developing in Google Glass coming Soon….!

All What you need to know before start developing for Google Glass (Infographic)

google_glass_dev_kinvey

Ok then, In my next post we will see how to install Google Glass Software in our Android Phone without rooting the phone(So in future till we get a proper emulator we can use it)…!

Info graphic Image Source : http://readwrite.com/2013/05/30/everything-you-need-to-know-to-get-started-with-google-glass-development

Google Glass Deep Inside(In Programers’ View )

Basically the Google Glass runs Android OS. It means if you know Android(or Java) you can easily write apps for the glass.

If you want a basic idea about what is google glass please read my previous post.

But there are some important stuffs you have to look into and research, before you jump into the app development. With limited hardware resources, the capability of the devices is restricted. At the time of writing this article the Explorer Edition 7 update is released and we can do some stuffs like, take a photo, record a video, start a hangout, send an email, browse web and some other stuffs.

The device is not like phone, where it does not have a touch display, the glass works by voice commands and mostly by tapping and scrolling the side of the glass. So you cannot expect to add buttons sliders. Still an SDK is not released to develop app for the glass.

If you have been wondering on what would it take for someone to get up and running with google glass development. Following is a list of technologies that forms the technology stack for google glass:

  • Web service protocol: REST
  • Message format: JSON
  • Google Mirror  API: Java, .NET, PHP, Python, javascript, Ruby

Well, we can start on with what Google Glassers have termed as “Glassware“. Glassware is a piece of software built on top of Google Mirror API. Google Mirror API is a set of Restful web services which help to communicate to and fro with google glass devices. Lets look at the diagram below to understand a little better.

GoogleGlass1

Above depicts interaction between google glass device and glasswares based on google mirror API.

What one can do using Google Mirror API?

  • Creating new cards on a timeline
  • Updating current cards on a timeline
  • Receiving user-initiated input exposed through a card’s menu
  • Subscribing to notifications from Glass devices to be notified of user actions

lets see the Google Glass – Mirror API – Glasswares – High Level Architecture

google-glass-high-level-architecture

Lets try and understand the above architecture:

  • Glass users subscription to your service: You develop one or more web-based service for google glass and publish. These services can be termed as glasswares. Glass users subscribes to your service by logging on to your website authenticating themselves using OAuth 2.0
glass camera
User subscription by visiting a glassware site
  • Glassware updates using Mirror API: Your google glassware then starts publishing to google glass cloud using mirror API. To be able to that, you must register your service with google cloud.
  • Google Glass synchronizes with glass device: This is third aspect. Once your glassware publishes to google cloud using mirror api, google glass then synchronizes your updates to your subscribed users.

You can control the glassware sites you have subscribed by logging in to MyGlass account . You can access this with the MyGlass Android App too.

final
User can On and Off Notifications to glass from this online site

In the above image you can see my glassware “Batman’s Layer” is listed with the other glasswares I have subscribed.

Ok then In my next post we will see what you needed to start developing for Google Glass …!

References: http://vitalflux.com/tag/google-glass-2/page/2/

What is a Google Glass

Google-Glass

Google Glass (styled “GLΛSS”) is a wearable computer with a head-mounted display (HMD) that is being developed by Google in the Project Glass research and development project, with the mission of producing a mass-market ubiquitous computer. The computer in the glass is running an Android OS (Android 4.0.4)Google Glass displays information in a web card format just like Google Now Cards , that can interact with the Internet via natural language voice commands, which are more advance than the current Voice to Text feature.Glass is being developed by Google x, which has worked on other futuristic technologies such as driverless cars. The project was announced on Google+ by Project Glass lead Babak Parviz, an electrical engineer who has also worked on putting displays into contact lenses; Steve Lee, a product manager and “geolocation specialist”; and Sebastian Thrun, who developed Udacity as well as worked on the self-driving car project.
Thad Starner, an augmented reality expert, is a technical lead/manager on the project.

The glass is mainly used to display information to the user. And not intended to handle heavy jobs like gaming. Because battery and the safety of the eye is most important aspect to care about.

glass camera

This kind of  a view will be displayed on the right hand top corner of the glass. This view is captured when the video record mode is active.

augmented reality computer

Some cross structure of the device and what it can do…!

This is how the Google Glass Menu look like?

ok_glass_menu

How to work with google glass menu?

All you have to do is say, “Ok Glass”. And you get the above shown command menu

How you go about selecting a particular menu item?

Now what you have to say is one of the following:

  • ok glass, google …
  • ok glass, take a picture
  • ok glass, record a video
  • ok glass, get directions to…
  • ok glass, start a hangout…
  • ok glass,send a message to…

With latest version more commands will be available[2]

Hardware

Camera

Google Glass has the ability to take photos and record 720p HD video. While video is recording, a recording light is displayed above the eye, which is unnoticeable to the wearer.

Touchpad

A man controls Google Glass using the touchpad built into the side of the device
The side of Google Glass is a touchpad, allowing users to control the device by swiping through a timeline-like interface displayed on the screen.
Technical specifications

For the developer Explorer units:

Android 4.0.4 and higher

No official information about display resolution, 640×360 suggested, as it is recommended for app developers

  •     5-megapixel camera, capable of 720p video recording
  •     Wi-Fi 802.911b/g    Bluetooth
  •     16GB storage (120 GB available)
  •     Texas Instruments OMAP 4430 SoC 1.2Ghz Dual(ARMv7)
  •     682MB RAM .
  •     3 axis gyroscope
  •     3 axis accelerometer
  •     3 axis Magnetometer (compass)
  •     Ambient Light sensing and Proximity sensor [1]

Lookout for the next post where Ill be writing about google glass on a programers view. With some Hands On Fun stuffs…!
😀

References
[1]http://deepakcristiano.blogspot.com/2013/05/what-is-google-glass.html
[2]http://vitalflux.com/tag/google-glass-2/page/2/