Google Glass is a wearable and voice controlled device that uses a pair of eyeglasses and displays information to the user’s vision. Its operating system is based on a version of Android and it can run an app called Glassware. This type of applications is free and built by third party developers. Glass also uses many existing Google applications like Google Now, Google Maps, Google+, etc.

Google Glass device has been designed for sharing and uploading images, video and audio online. Many developers and companies have built applications for Glass, including news apps like Facial Recognition, Photo Manipulation, Translation and Sharing Social networks like Facebook and Twitter.

1.How it Works

2. Features

Record Videos Take Pictures Show Notification and Messages Search Information Show maps Live Video Sharing Integrate and Translate Google Now.

3. Advantages of Google Glass

Easy to wear and use. Sensitive and responsive to the presence of people. Fast access of maps, documents, videos, chats and much more. A new trend for fashion lovers together being an innovative technology. A spectacle based computer to reside directly on your eyes rather than in your pouch or pocket. A useful technology for all kinds of handicapped/disabled people

4. Disadvantages of Google Glass

Can be easily broken or damaged. Users will have a tough time taking care of it. It may lead to accidents while driving. Privacy of people may breach with new glasses

5. Develop your first app using Google Glass

Google Glass Development is different than Mobile App Development. Google glass is free to your hands. Voice input is the main source of interaction with Google Glass applications.

Let us now go through the steps involved I developing your App using Google Glass.

Step 1. Start Android Studio and Create a New App

Step 2: Enter your application name & click on next button.

Step 3: Select The Glass Option.

Step 3.1: If you can’t Select this Option, it means that you have not Installed SDK for Google Glass. Start SDK Manager in Android Studio to install it.

Step 3.2: Install Glass Development Kit Preview for Android 4.4.2 (API 19).

Step 4: Add an Activity to Glass and Select Immersion Activity. Click to Next.

Step 5: Enter the Activity Name and click on ‘Finish’.

Step 6: Your project will get configured in some time.

Step 7: Go to MainActivity.java. Check the code which is shown below:

Import com.google.android.glass.app.Card; public class HelloWorld extends Activity { @Override protected void onCreate (Bundle savedInstanceState) { super.onCreate(savedInstanceState); Card card = new Card(this); card.setText(“Hello World”); setContentView(card.toView()); } }

Step 8: Open AndroidMainfest.xml and check below Code.

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.hitesh_pc.androidglassdemo" > <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > <activity android:name=".HelloWorld" android:icon="@drawable/ic_glass_logo" android:label="@string/title_activity_hello_world" > <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" /> </activity> </application> </manifest>

Step 9: Click on app option as below:

Step 10: Click on Edit Configuration as shown below:

Step 11: In the Edit Configuration screen make the following changes:

Module: app

Package: Deploy default APK

Activity: Launch default Activity

Target Device: USB Drive

Step 12: Click on Run Button. If Pop-up informs, Select Continue Anyway.

Step 13. Run your application successfully.

Your output will be as shown like below:

Note: Google Glass can be tested only on real devices. There is no virtual emulator to test it.

Keep visiting our website Acadgild for more updates on Big Data and other technologies. Click here to learn Android App Development.