Starting Glassware

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 [TODO: SWITCH LINK] developer guide.

Starting speech recognition

For more information on starting the speech recognition Glassware, see the Voice [TODO: SWITCH LINK] developer guide.

Starting the web browser

See Web Browser [TODO: ADD LINK] 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>

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.