AndroidTV语音搜索

Posted 邱小琪Yogi

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了AndroidTV语音搜索相关的知识,希望对你有一定的参考价值。

1.android.intent.action.search:告诉搜索服务,这个可以被搜索

/**
* Builds an entire list (suitable for display) of
* activities that are searchable, by iterating the entire set of
* ACTION_SEARCH & ACTION_WEB_SEARCH intents.
*
* Also clears the hash of all activities -> searches which will
* refill as the user clicks “search”.
*
* This should only be done at startup and again if we know that the
* list has changed.
*
* TODO: every activity that provides a ACTION_SEARCH intent should
* also provide searchability meta-data. There are a bunch of checks here
* that, if data is not found, silently skip to the next activity. This
* won’t help a developer trying to figure out why their activity isn’t
* showing up in the list, but an exception here is too rough. I would
* like to find a better notification mechanism.
*
* TODO: sort the list somehow? UI choice.
*/

看Searchables.java的updateSearchableList()方法

以上是关于AndroidTV语音搜索的主要内容,如果未能解决你的问题,请参考以下文章

如何使用语音打开 Android TV 应用

如何使用 android Tv 在 searchfragment 中隐藏语音搜索图标

android leanback 搜索片段

android tv - 浏览片段中搜索图像的参考

未调用内容提供程序查询()(Android TV)

Android TV:VerticalGridFragment 阴影尺寸和颜色