diff --git a/docs/html/training/tv/tif/tvinput.jd b/docs/html/training/tv/tif/tvinput.jd index f76f78b837a4b..1a53398e6e4c8 100644 --- a/docs/html/training/tv/tif/tvinput.jd +++ b/docs/html/training/tv/tif/tvinput.jd @@ -12,7 +12,7 @@ trainingnavtop=true
Define the service meta data in separate XML file, as shown in the following example. The service
meta data must include a setup interface that describes the TV input's initial configuration and
-channel scan. Also, the service meta data may (optionally) describe a settings activity for users to
-modify the TV input's behavior. The service meta data file is located in the XML resources directory
+channel scan. The service meta data file is located in the XML resources directory
for your application and must match the name of the resource in the manifest. Using the example
manifest entries above, you would create an XML file in the location
res/xml/sample_tv_input.xml, with the following contents:
<tv-input xmlns:android="http://schemas.android.com/apk/res/android" - <!-- Required: activity for setting up the input --> - android:setupActivity="com.example.sampletvinput.SampleTvInputSetupActivity" - <!-- Optional: activity for controlling the settings --> - android:settingsActivity="com.example.sampletvinput.SampleTvInputSettingsActivity" /> + android:setupActivity="com.example.sampletvinput.SampleTvInputSetupActivity" />
notify() methods are described in
Control Content and Handle Track Selection
further in this training.
-The system TV app works with the setup and settings activities you define for your TV input. The +
The system TV app works with the setup activity you define for your TV input. The setup activity is required and must provide at least one channel record for the system database. The system TV app will invoke the setup activity when it cannot find a channel for the TV input.
The setup activity describes to the system TV app the channels made available through the TV input, as demonstrated in the next lesson, Creating and Updating Channel Data.
- -The settings activity is optional. You can define a settings activity to turn on parental -controls, enable closed captions, set the display attributes, and so forth.
- -