Search code examples
androidaccessibility

How to direct users for enabling accessibility service for my app


I know It's impossible to enable the Accessibility service for apps programmatically, so I'd like to direct users to this screen: System settings --> Accessibility --> app name --> enable/disable screen. Is that possible ?


Solution

  • You can get them to the Accessibility screen on most devices using ACTION_ACCESSIBILITY_SETTINGS. However:

    • that may not work on all devices, so you will want to just send them to Settings as a fallback, if you get an ActivityNotFoundException

    • there is no way to get them straight to any given app, let alone the enable/disable screen