I made an Android app. Now I need the app to work on Android TV. My app uses the accessibility service but I can't find how to enable the accessibility service for my app on Android TV.
How can it be done?
There is no guarantee that any given Android TV device will support accessibility services, or at least offer accessibility via the Settings app.
You could try adding a button or something to your own app UI that launches an ACTION_ACCESSIBILITY_SETTINGS
activity. Be sure to wrap that in try
/catch
and figure out what you will do if that screen simply is unavailable.