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.
For information on starting your Glassware from the Home menu (Clock card), see the Voice [TODO: SWITCH LINK] developer guide.
For more information on starting the speech recognition Glassware, see the Voice [TODO: SWITCH LINK] developer guide.
See Web Browser [TODO: ADD LINK] intents for more information on how to start the Glass web browser.
Use the following intents to display the settings card on Glass.
Action
Example
startActivity(new Intent(Settings.ACTION_SOUND_SETTINGS));
Start the built-in Nav Glassware to get turn-by-turn navigation to a location.
Action
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
- Drivingw
- Walkingb
- Bicycler
- Transitmru
- 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"));
Portions of this page are reproduced from work created and shared by Google and used according to terms described in the Creative Commons 4.0 Attribution License.