Audio description
Audio description is a secure setting that you can add in through Fire OS.Implement audio description
The key for this setting is defined asaccessibility_audio_descriptions_enabled. The value is only added to secure settings when the user toggles it on for the first time. The default value is 0 (off), but after being set up and toggled on, the value changes to 1 (on).
Read the AD setting
Since this is a regular secure setting, you can read it throughSettings.Secure.getInt(ContentResolver cr, String name, int def). For more details, see the getInt function.
Here is a code example for reading the AD setting:
Subscribe to the AD setting
You can subscribe to the AD setting by creating and registering aContentObserver for it. For more details, see the ContentObserver API reference.
Here is a code example for subscribing to changes in the AD setting:
Closed caption
Closed caption is also stored by a secure setting from the Android Open Source Project (AOSP).Implement closed caption
UseCaptioningManager to read and subscribe to the enablement setting of whether CC is enabled or not. To retrieve a CaptioningManager, use get SystemService(Context.CAPTIONING_SERVICE). For more details, see the CaptioningManager class and the CAPTIONING_SERVICE Context constant.
Read the CC setting
To read the CC setting, useCaptioningManager to call isEnabled(). The default value is false (off).
Here is a code example for reading (and logging) the CC setting:
Subscribe to the CC setting
To subscribe to the CC setting, set up and add aCaptioningChangeListener to the CaptioningManager. For more details, see the addCaptioningChangeListener function.
The public method, onEnabledChanged(boolean enabled) is called when the CC setting is changed.
Here is a code example for subscribing to changes in the CC setting:

