Telewizory oferują wiele opcji rozrywkowych, a do wyboru są tysiące aplikacji i powiązanych usług. Jednocześnie większość użytkowników woli korzystać z telewizora z jak najmniejszą ilością danych wejściowych. Przy tak dużym wyborze aplikacja powinna zapewniać użytkownikom szybkie i łatwe odkrywanie i korzystanie z Twoich treści.
Możesz pomóc użytkownikom w odkrywaniu Twoich treści, wyświetlając rekomendacje na ekranie głównym, umożliwiając wyszukiwanie aplikacji w Twojej aplikacji oraz integrując treści z Asystentem Google. Ten temat zawiera omówienie każdego z tych obszarów oraz linki do powiązanych tematów i materiałów z dodatkowymi informacjami.
Polecaj treści na ekranie głównym
Ekran główny Androida TV wyświetla polecane treści w ramach kanałów i programów. Kanały są wyświetlane na ekranie głównym jako osobne wiersze, a karty wyświetlają wszystkie programy dostępne na danym kanale.
Więcej informacji znajdziesz w artykule Polecanie treści na ekranie głównym.
Udostępnij swoją aplikację do wyszukiwania
Android TV używa interfejsu wyszukiwania w Androidzie, aby pobierać dane z zainstalowanych aplikacji i dostarczać użytkownikowi wyniki wyszukiwania. Do tych wyników można dołączyć dane o treści aplikacji, aby użytkownik miał natychmiastowy dostęp do treści w aplikacji.
Więcej informacji znajdziesz w artykule Zezwalanie na wyszukiwanie aplikacji na telewizory.
Integracja z Asystentem Google
Aplikację możesz zintegrować z Asystentem Google na Androidzie TV za pomocą elementów sterujących wyszukiwaniem i odtwarzaniem. Ogólne informacje znajdziesz w tym poście na blogu dla deweloperów aplikacji na Androida.
Szukaj
Asystent Google może wysyłać zapytania do aplikacji, jeśli umożliwisz jej wyszukiwanie.
Pamiętaj, że precyzyjny link, który udostępniasz Asystentowi Google, powinien być linkiem uniwersalnym lub mieć schemat android-app://
.
Sterowanie odtwarzaniem
Asystent Google na Androidzie TV wysyła polecenia do aplikacji, korzystając z sesji multimediów.
Jeśli używasz ExoPlayer, możesz łatwo zintegrować go z Asystentem Google za pomocą MediaSessionConnector
, który jest rozszerzeniem ExoPlayer. Więcej informacji znajdziesz w tym poście na blogu dla deweloperów aplikacji na Androida.
Dodatkowe materiały
Aby dowiedzieć się więcej o tym, jak ułatwić użytkownikom znajdowanie treści na Androidzie TV, zapoznaj się z dodatkowymi materiałami.
Próbki
In order to launch new features on their Android app, Headspace spent 8 months refactoring their architecture and rewriting in Kotlin. Learn how this reboot helped their business grow. SmartNews helps millions of people discover their world everyday by sharing timely news from a diverse set of news sources. Twitter is one of the most widely used social media platforms where users can see what’s happening in the world at any given moment. The Google Home app helps set up, manage, and control your Google Home, Google Nest, and Chromecast devices—plus thousands of connected home products like lights, cameras, thermostats, and more. Duolingo is one of the most popular language learning platforms in the world, and one of the most-downloaded free education apps on Google Play, with more than 200 million downloads.Headspace's Android reboot increases monthly active users by 15%
SmartNews reduces lines of code by 20% and improves team morale with Kotlin
Twitter increases developer productivity and code reliability with Kotlin
Google Home reduces #1 cause of crashes by 33%
Duolingo completes migration to Kotlin and reduces its line count by an average of 30%
Ćwiczenia z programowania
In order to launch new features on their Android app, Headspace spent 8 months refactoring their architecture and rewriting in Kotlin. Learn how this reboot helped their business grow. SmartNews helps millions of people discover their world everyday by sharing timely news from a diverse set of news sources. Twitter is one of the most widely used social media platforms where users can see what’s happening in the world at any given moment. The Google Home app helps set up, manage, and control your Google Home, Google Nest, and Chromecast devices—plus thousands of connected home products like lights, cameras, thermostats, and more. Duolingo is one of the most popular language learning platforms in the world, and one of the most-downloaded free education apps on Google Play, with more than 200 million downloads.Headspace's Android reboot increases monthly active users by 15%
SmartNews reduces lines of code by 20% and improves team morale with Kotlin
Twitter increases developer productivity and code reliability with Kotlin
Google Home reduces #1 cause of crashes by 33%
Duolingo completes migration to Kotlin and reduces its line count by an average of 30%
Blogi
Updated 27 września 2021 In order to launch new features on their Android app, Headspace spent 8 months refactoring their architecture and rewriting in Kotlin. Learn how this reboot helped their business grow. Updated 6 stycznia 2021 SmartNews helps millions of people discover their world everyday by sharing timely news from a diverse set of news sources. Updated 21 października 2020 Twitter is one of the most widely used social media platforms where users can see what’s happening in the world at any given moment. Updated 13 lipca 2020 The Google Home app helps set up, manage, and control your Google Home, Google Nest, and Chromecast devices—plus thousands of connected home products like lights, cameras, thermostats, and more. Updated 15 maja 2020 Duolingo is one of the most popular language learning platforms in the world, and one of the most-downloaded free education apps on Google Play, with more than 200 million downloads.Headspace's Android reboot increases monthly active users by 15%
SmartNews reduces lines of code by 20% and improves team morale with Kotlin
Twitter increases developer productivity and code reliability with Kotlin
Google Home reduces #1 cause of crashes by 33%
Duolingo completes migration to Kotlin and reduces its line count by an average of 30%
Filmy
Updated 27 września 2021 Updated 6 stycznia 2021 Updated 21 października 2020 Updated 13 lipca 2020Headspace's Android reboot increases monthly active users by 15%
SmartNews reduces lines of code by 20% and improves team morale with Kotlin
Twitter increases developer productivity and code reliability with Kotlin
Google Home reduces #1 cause of crashes by 33%