0
votes

I'm trying open an URL from home screen with custom voice trigger from home screen. Something like 'ok glass, runABC' and it will open an URL with build in browser.

May i know is this possible with GDK? Sample code or project will be appreciated.

Thanks in advance.

1
Is your apps functionality anything beyond opening a website? - Prasanna Aarthi
No, my app will just open a website. - Kok Cheow Yeoh
It is feasible ,But I am not sure if the app will get approved by Google,Please give it a check before proceeding. - Prasanna Aarthi

1 Answers

0
votes

It is possible. By using a custom voice command, however, do take note that your voice command will need to be approved if you would like to launch your Glassware in MyGlass. For development purposes, it should be fine.

After you've found or set up the appropriate voice command, you can look at this on how to create the intent-filter and trigger that will start this voice-activated activity. The link has instructions on how to add prompts to your voice commands (i.e. when you want to go to different URLs for different prompts).

Then you can immediately start an activity that starts the browser from the voice-triggered activity.