diff --git a/docs/html/preview/features/tv-recording-api.jd b/docs/html/preview/features/tv-recording-api.jd index b62dd46fca83b..65ab340d199fa 100644 --- a/docs/html/preview/features/tv-recording-api.jd +++ b/docs/html/preview/features/tv-recording-api.jd @@ -37,7 +37,23 @@ experience for your TV input service.
To tell the system that your TV input service supports recording, follow +
To tell the system that your TV input service supports recording, set
+the android:canRecord attribute in your service metadata XML file
+to true:
+
+<tv-input xmlns:android="http://schemas.android.com/apk/res/android" + android:canRecord="true" + android:setupActivity="com.example.sampletvinput.SampleTvInputSetupActivity" /> ++ +
For more information on the service metadata file, see +Declare Your TV Input +Service in the Manifest. +
+ +Alternatively, you can indicate recording support in your code using these steps:
setCanRecord(true) before calling build() to
indicate your service supports recording.
TvInputInfo object with the system by calling
-TvInputService.updateTvInputInfo().TvInputManager.updateTvInputInfo().