Text Search in Apps

Text search within an app refers to any specific text-search features you have specifically coded within your app. Text search for your app is not available by default on Amazon Fire TV.

Global Text Search

Amazon Fire TV provides a global text search available from the Fire TV home screen. The global text search returns results from the Amazon Catalog. In order for your media to appear in global text search results, you must integrate your app's media into the Amazon Catalog.

Voice Search

Amazon Fire TV also provides voice capabilities through the voice-enabled remote control. In addition to the Alexa voice capabilities on Fire TV, users can also use natural language to search for TV shows, movies, and other media.

Regardless of where users are in Fire TV, when they press the microphone button on a voice-enabled remote and say the TV show or Alexa actions they want, this action initiates a global search using the Alexa cloud service instead of the Leanback library.

If the user already has your app installed, your app's content can appear directly in the catalog results. If a user doesn't have your app, a "More Ways to Watch" option appears for users to get your app and view the content. (Note that catalog integration is only recommended as an option for apps whose content is the same for all customers.)

Avoiding Speech Recognition Errors from Leanback

Because Alexa is used for voice interactivity on Amazon Fire TV instead of the Leanback library, you must disable any speech recognition with the Leanback library’s SearchFragment class for your Fire TV app. If you don't disable speech recognition, your app will potentially return errors when users perform searches.

In Leanback's SearchFragment class, the startActivityForResult method looks for the speech recognizer. Since FireTV does not support this speech recognizer, this action produces an error. To avoid the error, override the onCreate() method and comment out the speech recognition callback so that the method does not execute. Here's an example:

Here the startActivityForResult method is simply commented out, so the speech recognition feature will not execute and no error will result.

Alexa Skills and Apps

You cannot create an Alexa-powered voice search specific to your app, returning media results from your app only. You can access any Alexa skill on Fire TV, but the skills are voice-only experiences. The voice skills do not interact with native apps on Fire TV. As such, there are no ways for an Alexa skill you create to control your app.