帮助用户在 Android TV 上查找内容

TV 设备提供许多娱乐选项,其中包含来自应用和相关内容服务的数千个选择。同时,大多数用户更喜欢使用尽可能少的输入源的电视。由于提供如此多的选择,您的应用应为用户提供快捷简单的路径来让用户发现和欣赏您的内容。

您可以通过主屏幕上的推荐、让应用可搜索,以及将您的内容与 Google 助理集成,帮助用户发现您的内容。本主题概述了其中每个方面,并提供了指向相关主题和资源的链接,以便您了解详情。

主屏幕上的推荐内容

Android TV 主屏幕使用“频道”和“节目”显示推荐内容。频道在主屏幕上以单独的行显示,并通过卡片显示该频道的所有可观看节目。

如需了解详情,请参阅主屏幕上的推荐内容

使应用可搜索

Android TV 使用 Android 搜索界面从已安装应用中检索内容数据,并向用户提供搜索结果。应用的内容数据可以包含在这些结果中,以便用户能够即时访问应用中的内容。

如需了解详情,请参阅使 TV 应用可搜索

与 Google 助理集成

通过实现搜索和播放控件,您的应用可与 Android TV 上的 Google 助理集成。如需简要了解相关信息,请参阅 Android 开发者博客上的这篇博文

如果您使应用可搜索,Google 助理可以查询您的应用。请注意,您向 Google 助理提供的深层链接应该是通用链接或具有 android-app:// 架构。

播放控件

Android TV 上的 Google 助理使用媒体会话向您的应用发送命令。

如果您使用的是 ExoPlayer,则可以使用 MediaSessionConnector(ExoPlayer 的扩展程序)轻松与 Google 助理集成。如需了解详情,请阅读 Android 开发者博客上的这篇博文

其他资源

如需详细了解如何帮助用户在 Android TV 上查找内容,请参阅下面列出的其他资源。

示例

This sample demonstrates how to implement an audio media app that works across multiple form factors.

This sample app showcases different components that come with Leanback library.

This sample demonstrates how to build live TV channel apps for Android TV using the TV Input Framework (TIF).

Codelab

了解 Compose for TV 的基础知识,并创建 TV 应用中常用的两个页面。

博客

Updated 2024年5月15日

Over the past year, we’ve seen significant growth of Android TV OS, reaching 220 million monthly active devices with a 47% year-over-year increase. This incredible engagement would not be possible without our dedicated developer community. A massive

Updated 2024年5月14日

AI is unlocking experiences that were not even possible a few years ago, and we’ve been hard at work reimaging Android with AI at the core, to help enable you to build a whole new class of apps. At this year’s Google I/O, we’re covering how new tools

Updated 2023年5月10日

Over the past year, we’ve continued to see significant growth on Android TV OS, now with over 150 million monthly active devices. In fact, according to Strategy Analytics, the Android TV streaming platform shipped on more devices worldwide than any

Updated 2022年12月2日

Here’s a look at some of what’s new in Android 13 for TV. Android 13 brings new APIs to the big screen that help developers deliver high quality experiences to users across different device types. Android 13 brings new features to make interacting

视频

Updated 2022年11月10日

Updated 2020年8月12日

Updated 2020年8月10日

Updated 2020年8月10日