The Glass Explorer Edition SDK is deprecated. This documentation remains as a historical reference.
Starting Glassware
Stay organized with collections
Save and categorize content based on your preferences.
You can start your own Glassware by declaring a voice
command that is associated with your Glassware. Adding a voice command
also adds a touch menu if your users choose to tap instead of speak
commands.
You can also start system-provided Glassware, such as navigation
or the web browser to carry out certain actions for you, so you don't have
to rewrite functionality.
Starting your own Glassware
For information on starting your Glassware from the Home menu (Clock card), see
the Voice developer guide.
Starting speech recognition
For more information on starting the speech recognition Glassware, see the
Voice developer guide.
Starting the web browser
See Web Browser
intents for more information on how to start the Glass web browser.
Starting settings
Use the following intents to display the settings card on Glass.
- Action
- Example
startActivity(new Intent(Settings.ACTION_SOUND_SETTINGS));
Starting navigation
Start the built-in Nav Glassware to get turn-by-turn navigation to a location.
- Action
ACTION_VIEW
- Data URI Scheme
google.navigation:ll=<latitude>,<longitude>&title=<title>&q=<query>&mode=<mode>
ll
- Coordinates of a location to navigate to. Do not specify query
if you specify this.
title
- Title to display for the place to navigate to.
Defaults to showing the latitude and longitude of the location
if you specified those properties or the name of the location if
you specified query
.
query
- A string to query for places to navigate to. Do not specify ll
if you specify this.
mode
- Defaults to mru
if not specified or d
if mru
does not exist.
Possible values are:
d
- Driving
w
- Walking
b
- Bicycle
r
- Transit
mru
- Most Recently Used.
- MIME Type
None
- Example
Intent navIntent = new Intent(Intent.ACTION_VIEW,
Uri.parse("google.navigation:ll=37.4219795,
-122.0836669&title=Googleplex"));
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["\u003cp\u003eYou can launch your own Glassware by defining a voice command, which also creates a corresponding touch menu option.\u003c/p\u003e\n"],["\u003cp\u003eLeverage system Glassware like navigation and the web browser to incorporate existing functionalities, avoiding redundant development.\u003c/p\u003e\n"],["\u003cp\u003eUtilize provided intents to seamlessly access Glass settings such as Wi-Fi, Bluetooth, and sound.\u003c/p\u003e\n"],["\u003cp\u003eInitiate turn-by-turn navigation using the built-in Nav Glassware with specified location details and travel mode.\u003c/p\u003e\n"]]],[],null,["# Starting Glassware\n\nYou can start your own Glassware by declaring a voice\ncommand that is associated with your Glassware. Adding a voice command\nalso adds a touch menu if your users choose to tap instead of speak\ncommands.\n\nYou can also start system-provided Glassware, such as navigation\nor the web browser to carry out certain actions for you, so you don't have\nto rewrite functionality.\n\nStarting your own Glassware\n---------------------------\n\nFor information on starting your Glassware from the Home menu (Clock card), see\nthe [Voice](/glass/develop/gdk/voice) developer guide.\n\nStarting speech recognition\n---------------------------\n\nFor more information on starting the speech recognition Glassware, see the\n[Voice](/glass/develop/gdk/voice) developer guide.\n\nStarting the web browser\n------------------------\n\nSee [Web Browser](//developer.android.com/guide/components/intents-common.html#Browser)\nintents for more information on how to start the Glass web browser.\n\nStarting settings\n-----------------\n\nUse the following intents to display the settings card on Glass.\n\nAction\n:\n - [`ACTION_WIFI_SETTINGS`](//developer.android.com/reference/android/provider/Settings.html#ACTION_WIFI_SETTINGS)\n - [`ACTION_BLUETOOTH_SETTINGS`](//developer.android.com/reference/android/provider/Settings.html#ACTION_BLUETOOTH_SETTINGS)\n - [`ACTION_SOUND_SETTINGS`](//developer.android.com/reference/android/provider/Settings.html#ACTION_SOUND_SETTINGS)\n\nExample\n:\n\n startActivity(new Intent(Settings.ACTION_SOUND_SETTINGS));\n\nStarting navigation\n-------------------\n\nStart the built-in Nav Glassware to get turn-by-turn navigation to a location.\n\nAction\n: [`ACTION_VIEW`](//developer.android.com/reference/android/content/Intent.html#ACTION_VIEW)\n\nData URI Scheme\n\n: `google.navigation:ll=\u003clatitude\u003e,\u003clongitude\u003e&title=\u003ctitle\u003e&q=\u003cquery\u003e&mode=\u003cmode\u003e`\n\n - `ll` - Coordinates of a location to navigate to. Do not specify `query` if you specify this.\n - `title` - Title to display for the place to navigate to. Defaults to showing the latitude and longitude of the location if you specified those properties or the name of the location if you specified `query`.\n - `query` - A string to query for places to navigate to. Do not specify `ll` if you specify this.\n - `mode` - Defaults to `mru` if not specified or `d` if `mru` does not exist. Possible values are:\n - `d` - Driving\n - `w` - Walking\n - `b` - Bicycle\n - `r` - Transit\n - `mru` - Most Recently Used.\n\nMIME Type\n\n: None\n\nExample\n:\n\n Intent navIntent = new Intent(Intent.ACTION_VIEW,\n Uri.parse(\"google.navigation:ll=37.4219795,\n -122.0836669&title=Googleplex\"));"]]