How to launch an android app from the voice like OK Google

浪尽此生 提交于 2019-12-11 09:40:09

问题


I want to build an app in which I want to launch an app with voice. Please help me.


回答1:


Edited

First off all you need to recognize users speech by using Speech Recognizer. After that you'll receive a String with text. After getting from this text an app name you could get access to installed apps data and then launch an app you want by simple intent.




回答2:


refer official documentation to start your activity using voice command.

This is for wearables, you can give it a try.



来源:https://stackoverflow.com/questions/30317130/how-to-launch-an-android-app-from-the-voice-like-ok-google

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!