App to develop Google eyewear

Source: Internet
Author: User

Google Glasses, I believe that many people are not unfamiliar, so many people with curiosity and anticipation, hope that they can also take a try, what kind of feeling. Start with a simple look at Google Eyewear development

Here is a brief introduction of the Google Glasses development of some knowledge, api/sdk.

1, Google Glasses Mirror API, is based on the RESTful interface, from the remote server to the Google Glasses timeline cloud.

2, the development kit of glasses, built on the basis of the Android SDK, not only for the development of Google Glasses application. You can also collaborate with the Android NDK and native code.

Embarcadero Technology's Appmethod application development platform and RAD Studio development tools support Android app development and support for Google eyewear applications. So you can write in C + + or Object Pascal programming language. Also based on the Android SDK and NDK. As long as the android adb driver for Google Glasses is loaded, it's just like any other Android device. Use RAD Studio development tools to develop various parts of Google eyewear. Using object Pascal is also applied to Rad Studio, where the case list applies to C + +, or C + + Builder and Delphi products. Similarly, part of the case can work on Appmethod. You can download a rad studio or Appmethod (free trial for 30 days) to write

Google Glass is not the first Android system for a head-mounted computer, but the most innovative. Compared to the modules on other Android devices: A touchscreen or keyboard, Google Glass's input devices are mostly sound and a very small touch-controlled panel located near the right temple. This touchpad cannot be used to click on an app, but will provide four basic gestures: Navigate forward and backward, select, or Back button, and sometimes the fallback button will exit your app.

Google Glass's user interface is primarily a timeline of some cards, and tapping Google Glass moves left or right to move the timeline forward or backward. Tap or sound control to open an installed application, when you start an installed application, you will typically continue to use the left-to-right navigation mode.

Install ADB USB Driver

The ADB USB driver needs to be installed prior to Android app Development on the Windows operating system.

Before Google USB Drive version 9th, the installation process for Google Glass was complicated.

Now Google Glass is officially offering more friendly support. Simply run the Android Tools toolset (installed with RAD Studio) to open the Android SDK management interface. Installing the Google USB driver at the bottom of the package list extra is a lot easier. Such as:

Locate extras\google\usb_driverunder the installation directory of the Android SDK.

Build your first native glassware App

Google Glasses settings IDE

The resolution of the main screen is 640x360,

The pixel density is 1.5. RAD Studio size layout for Google eyewear devices. You can select it in the IDE's design diagram

You can define your eyewear settings by using (Form Designer, Device Manager, Tools-Options-environment options)

Voice activated support

Locate the AndroidMainfest.template.xml file. You can open the edits from Project manager.

<actionandroid:name="com.google.android.glass.action.VOICE_TRIGGER"/>

Then, you need to add metadata to the response in the <activity> tab:

1 <meta-dataandroid:name="com.google.android.glass.VoiceTrigger" android:resource="@xml/voice_trigger_start"/>

This parameter specifies the XML file voice_trigger_start.xml defines a sound trigger

Create a voice_trigger_start.xml file.

Project Manager then selects Add new > Other > Web Documents > XML file to add XML files to the project.

    1. Rename this XML file to Voice_trigger_start.xml or the name you specified. Manifest does not contain an. xml suffix.

    2. Save the XML file to your project directory.

    3. Edit the XML file as follows:

1 <?xml version="1.0"encoding="UTF-8"?>
2
3 <trigger keyword="Your keyword here"/>

Universal Glass App Configuration

Click Project->options->version Info, select all configurations–android Platformin the dropdown above, and then turn the value of theme from titlebar modified to No titlebar.

Finally,----build your app

At this point, you have built an application to the Google Glasses integration environment. Because glasses are a different example of the use of mobile applications than others.

To learn something about how to interact with Google glasses to achieve a better user experience, you can find relevant information to share with you.

Thank you

English Source: Developing Native Google Glass Apps

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.