Creating an AndroidTV Application on FireTV

I have an Android app for Android using leanback library that I want to publish on amazon tv store. I know that we can use the leanback library for fire tv from this link using the standard LAUNCHER . However, I am not sure about some things:

Guidelines for displaying Android TV content on the first line of the TV’s main screen

Content recommendations are displayed as the first line of the main TV screen after the first use of the device

To do this, we need to create a recommendation service and build recommendations in the Android application for Android.

Does FireTV also have recommendations and requires a recommendation service in the firetv application? Quote from this link

Main navigation menu - This is the main system menu. It appears in the line on the left side of the screen. The global navigation menu allows the user to select the main categories of content or other options, including Search, Home, Movies, TV, Music, Games, Applications, etc.

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

  1. Global search

Android TV uses the Android search interface to extract content data from installed applications and deliver search results to the user. The Android TV application implements the Content Provider along with the searchable.xml configuration file for this purpose.

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

Global search is system-wide and not customizable for individual applications. Developers can implement their own search in the application, but it is not included in the global search function.

  1. Search application

The Leanback Support Library provides a set of classes that allow the standard search interface in your application, which is consistent with other search functions on the TV and provides features such as voice input.

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

+5
source share
1 answer
  • Recommendations

No, Fire TV does not support recommendations, IIRC.

  1. Global search

Same as previous point.

  1. In the application

Yes, you can use the SearchFragment class. However (not sure about the latest versions of Leanback), there are a few quirks about how the mic input is handled. One of the things that should have been done was to turn off the speech recognizer:

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

You may run into one or two.

+6
source

All Articles