android - 在 Android 中实现 Google 语音操作

标签 android broadcastreceiver google-voice

如何在 Android 中实现来自 Google 的全新语音操作
我正在考虑是否可以听一些音乐应用程序使用的 Listen to 操作。
我的应用是否必须注册为接收器才能接收特定的广播?

最佳答案

这在 Android Developers Blog: Supporting the new music Voice Action 中有解释:

In your AndroidManifest.xml, just register one of your activities for the new intent android.media.action.MEDIA_PLAY_FROM_SEARCH.… When your activity receives this intent, you can find the user’s search query inside the SearchManager.QUERY string extra.

关于android - 在 Android 中实现 Google 语音操作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3555466/

相关文章:

android - 我如何知道哪个应用程序版本正在被 Android 取代?

Android TTS男声

android - 完全限定的数据库路径名的 SQLiteOpenHelper 问题

java - Android 中的#ifdef

java - 如何验证十进制输入不允许单独 "."和空字段?

android - 我没有收到去电电话号码?在模拟器和真实手机中也都为空

broadcastreceiver - 从广播接收器访问主要事件方法/组件

java - 用于 SMS 的 Twilio 与谷歌语音 API

android - 从谷歌搜索或语音输入开始 Activity

android 480x800 hdpi 和 480x800 mdpi 之间的区别