使AndroidTV应用在FireTV上可行 [英] Making AndroidTV app workable on FireTV

查看:185
本文介绍了使AndroidTV应用在FireTV上可行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用leanback库的android电视应用,我还想将其发布到亚马逊电视商店。
我知道我们可以根据 LAUNCHER 链接。但是我不确定几件事:

I have an android tv app using a leanback library that I want to publish to amazon tv store also. I know that we can use leanback library for fire tv as per this link using a standard LAUNCHER. However I am not sure about a few things:


  1. 建议

Android电视主屏幕第一行中的电视显示内容推荐

Android TV display content recommendations in the first row of the TV home screen


内容推荐显示为首次使用设备后的电视主屏幕

Content recommendations appear as the first row of the TV home screen after the first use of the device

为此,我们需要创建推荐服务在Android电视应用中构建建议

For this we need to create a recommendation service and build recommendations in the android tv app.

FireTV也可以显示推荐,并要求在firetv应用中提供推荐服务?引用自此链接

Does FireTV also show recommendations and requires a recommendation service to be present in the firetv app? Quoting from this link


全局导航菜单是主要的系统菜单。它出现在屏幕左侧的
行中。全局导航菜单允许
用户选择主要内容类别或其他选项,包括
搜索,家庭,电影,电视,音乐,游戏,应用程序等。

The global navigation menu is the primary system menu. It appears in a row on the left side of the screen. The global navigation menu allows the user to choose major content categories or other options including Search, Home, Movies, TV, Music, Games, Apps, and so on.

Fire TV上的全局导航菜单是否类似于Android TV上的内容推荐行?

Is global navigation menu on the Fire TV similar to content recommendations row on Android TV?


  1. > 全局搜索

Android TV使用Android 搜索界面检索内容来自已安装应用的数据,并将搜索结果传递给用户。 Android TV应用程序为此目的实现了 Content Provider 以及 searchable.xml 配置文件。

Android TV uses the Android search interface to retrieve content data from installed apps and deliver search results to the user. Android TV app implements a Content Provider along with a searchable.xml configuration file for the purpose.

Fire TV上是否可以进行全局搜索,我们是否需要提供类似于Android TV应用程序的内容提供商?引用自此链接

Is global search available on Fire TV and do we need to provide a content provider similar to Android TV app ? Quoting from this link


全局搜索是在系统范围内提供的,无法针对
个单独的应用进行自定义。开发人员可以实现自己的应用内搜索,但
不会包含在全局搜索功能中。

Global search is provided system-wide and is not customizable for individual apps. Developers may implement their own in-app search, but it is not included in the global search function.




  1. 在应用搜索




Leanback支持库提供了一组用于启用您应用中的
标准搜索界面,该界面与电视上的
其他搜索功能一致,并提供语音
输入等功能。

The Leanback support library provides a set of classes to enable a standard search interface within your app that is consistent with other search functions on TV and provides features such as voice input.

由于leanback支持库可以与Fire TV的Android API级别17一起使用,因此我认为leanback SearchFragment也可以用于FireTV。但是语音输入的处理方式是否有所不同?

Since leanback support library can be used with Android API level 17 for Fire TV, I think leanback SearchFragment can be used for FireTV as well. But is voice input to be handled differently?

推荐答案


  1. 建议

  1. Recommendations

不,Fire TV不支持建议,IIRC。

No, Fire TV does not support recommendations, IIRC.


  1. 全局搜索

  1. Global search

与上一点相同。


  1. 应用内搜索

  1. In app search

是的,您可以使用 SearchFragment 类。但是(不确定Leanback的最新版本),由于麦克风输入的处理方式存在一些奇怪之处。要做的事情之一是禁用语音识别器:

Yes, you can use the SearchFragment class. However (not sure about the recent versions of Leanback), there are a few quirks due to how the mic input is handled. One of the things that were to be done is disabling the speech recognizer:

Field mSpeechRecognizerField = SearchFragment.class.getDeclaredField("mSpeechRecognizer");
mSpeechRecognizerField.setAccessible(true);
mSpeechRecognizerField.set(this, null);

您可能还会遇到一两个。

You may encounter one or two more.

这篇关于使AndroidTV应用在FireTV上可行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆