Declare Static Capabilities
The VSK Agent is an on-device routing agent on Fire TV that sends VSK directives to your application (through intents). The VSK Agent scans your app’sAndroidManifest.xml for static capabilities to see your app supports. Declare your app’s static capabilities as follows:
-
Open your
AndroidManifest.xmlfile and add the following resource inside theapplicationelement. -
This previous code references a resource at
@raw/static_capabilitiesthat lists details about the capabilities your app supports. Add this file (calledstatic_capabilities— no file extension) insideapp/res/rawin your project. Thisstatic_capabilitiesfile lists capabilities that your app always supports. This file will be scanned by VSK Agent on app install or app update. This means the user can control your app by voice without opening it for the first time. -
In the
static_capabilitiesfile, list the capabilities your app supports. The contents ofstatic_capabilitiesmust be a JSON object containing a singlecapabilitiesarray, with each object in the array listing a different capability. See Supported Capabilities with App-only Integration for a list of all possible capabilities you can add in the JSON file. For example, to declare support for theRemoteVideoPlayercapabilities, including bothSearchAndPlayandSearchAndDisplayResultsdirectives that this interface sends, add the following code to yourstatic_capabilitiesfile:To declare support for bothRemoteVideoPlayerandPlaybackController(not recommended), add the capability as another object in thecapabilitiesarray:In the previous code, the app now supports Play, Pause, and Stop directives from theAlexa.PlaybackControllertoo. Note that if you indicate capabilities like this in yourstatic_capabilitiesfile, your app must be able to handle these directives. If your app doesn’t support these directives, don’t list the capabilities here. Alexa sends you only the directives that your app declares it supports. For example, if you declarePlaybackController, you’ll get directives for this interface that you’re expected to handle; if not, you won’t. -
In the
catalogsproperty, update the value for thesourceIdwith yourPartnerID. Your Partner ID is the same value you report to Fire TV launcher during the catalog integration with the Fire TV launcher (see Universal Search and Browse). It’s also thePartnerfield in your CDF file (which you submitted during catalog integration.) Your Amazon representative can provide this ID if you need it. See the RemoteVideoPlayer Capabilities section in “Supported Capabilities” for more details about thecatalogsproperty.

